in Education by
MS Visual Studio has Solution Explorer where I can see all project files, I can also create filters which are like folders for files to keep them in groups. The problem is - I want my files divided in groups both in Visual and physically on my disk. But I don't want to have to apply each change twice both in Visual and on my disk. Is there any way to show actual folders, in which I keep my files on disk, in Visual Solution Explorer (and no - "Show all files" doesn't do that, I've just checked)? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
No - SE and the Filing System hold independent copies of the structure/hierachy information. I usually disable the filters and put files where I want them, so that the two structures remain in sync by default (indeed, any other way seems like madness if you want to have any kind of organisation of source code - I always group files for components inot separate folders). Then (with filters disabled)... If you create the folders in Solution Explorer, and use the context menu from that folder to "Add new item..." or "Add existing item" then the disk structure will reflect the solution explorer (existing items are copied rather than referenced from where they currently reside to ensure this, which can result in old copies of files being left around your project if you add to the wrong SE folder). Otherwise it is usually only if you "add as link" that VS will put an item in a different folder in the SE than it appears on disk. To tidy things up, the easiest approaches are (after making a backup copy just in case): Open the solution and file explorers and manually "diff" them. Any files that are "wrong" should be removed from SE, moved to the correct disk location, and then added to SE by using the context menu for the correct SE folder. If there aren't too many folders, a simpler approach is to just remove all files from solution explorer and then add them (one folder at a time) back into the project, ensuring that you create the correct folder names as you go, and add from each folder's context menu. By rebuilding the SE from scratch you can fairly quickly sync the two layouts, and this can often be easier than trying to work out where the differences lie. Once they're in sync, only use the SE to manage the files, and be careful to add items using the context menu from the correct folder. If you move things about on disk, you'll break the links.

Related questions

0 votes
    I have a Visual Studio online Team Project with a repository. I have been using this with VS 2013 for a ... and doing clone again? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    How does one save a 'view' in thunderbird and then have that applied to other folders (nested and ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    how can you personalize your computer and create files and folders Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    Which is the parent of all the folders. Hard drive Root directory File Select the correct answer from above options...
asked Dec 11, 2021 in Education by JackTerrance
0 votes
    an operatingsystem______ memory to____ files and folders a) allocates,store b) locates,manage. c)allocates,program. d)stores,allocate Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    Search bar librar Explorer View 1. You can easily manage your files and folders using in the Desktop view. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    The traditional storage of data that is organized by customer, stored in separate folders in filing ... Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    What are the Folders in MVC application solutions?...
asked Apr 5, 2021 in Education by JackTerrance
0 votes
    What are Spotfire Shared Folders?...
asked Nov 21, 2020 in Technology by JackTerrance
0 votes
    Few channels in Slack are listed with a lock symbol in the Explorer because these channels are ___________. A. Private B. Personal C. Public D. Exclusive...
asked Dec 23, 2022 in Education by JackTerrance
0 votes
    Looking for guidance on how to use Angular Elements that will work across other browsers especially with Internet ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 6, 2022 in Education by JackTerrance
0 votes
    Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    I am trying to simulate the look and feel of a Firefox disabled text input: textarea and input text. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 25, 2022 in Education by JackTerrance
0 votes
    I am trying to simulate the look and feel of a Firefox disabled text input: textarea and input text. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    I am in a project where I need to connect to a client's server and retrieve data for some graphs ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
...