solution-explorer

How to keep source folders hierarchy on solution explorer?

天大地大妈咪最大 提交于 2019-12-19 08:33:52
问题 I made a C++ project on Linux, and I grouped source files in many directories to organize myself. I was using CMake to compile, with one CMakeFiles.txt on each subdirectory. srcs |--folderA | |--Toto.cpp | |--Tata.cpp | |--folderB | |--Foo.cpp | |--Bar.cpp [...] Recently, I opened it with Visual Studio 2015, which found every source file, but just put the entire list on the "Source Files" folder of solution explorer. Source Files |--Toto.cpp |--Tata.cpp |--Foo.cpp |--Bar.cpp I plan to have a

How to keep source folders hierarchy on solution explorer?

删除回忆录丶 提交于 2019-12-19 08:33:08
问题 I made a C++ project on Linux, and I grouped source files in many directories to organize myself. I was using CMake to compile, with one CMakeFiles.txt on each subdirectory. srcs |--folderA | |--Toto.cpp | |--Tata.cpp | |--folderB | |--Foo.cpp | |--Bar.cpp [...] Recently, I opened it with Visual Studio 2015, which found every source file, but just put the entire list on the "Source Files" folder of solution explorer. Source Files |--Toto.cpp |--Tata.cpp |--Foo.cpp |--Bar.cpp I plan to have a

Visual Studio: How to arrange the projects inside solution explorer by dependency

眉间皱痕 提交于 2019-12-18 16:48:40
问题 Is there any way to manually arrange the projects inside solution explorer of VS 2010+ based on the dependency (dependent project on higher level) ? 回答1: No, but when I have a solution with a lot of projects that I want to convey this build flow, I do something that may suit your needs. Because the Solution Explorer sorts things alphabetically, I put projects into "Solution Folders". I put a prefix on each project folder. So, I might name a folder "A. Helper Assemblies" . So, my solution

Visual Studio “Search Solution Explorer” is disabled

本秂侑毒 提交于 2019-12-18 12:53:12
问题 In Visual Studio 2015, every now and then my "Search Solution Explorer" is disabled. Doesn't seem to be any rhyme or reason to it, and often restarting Visual Studio or loading a different project does not help. I don't see anyone else on the internet complaining about this. Anyone run into this and have a fix? I do have Resharper installed, and perhaps that's causing problems, though I believe I've run into this before I ever installed Resharper. Alternatively, is there a third party

Why doesn't Visual Studio refresh the folders when I click the Solution Explorer refresh button?

房东的猫 提交于 2019-12-18 10:37:42
问题 In Visual Studio 2008, I can see all my project files in my Solution Explorer, and these files exist in an actual diectory. However, if I add a file to that directory (let's say, an test.sqlite file in the App_Data folder, or say, images created by some other program), then these files do NOT appear in my Solution explorer, even if I click the refresh button. How can I make files created by other applications appear in my Solution Explorer? (so far, I have to create them somewhere else, then

Collapse all files at once in Solution Explorer window in Visual Studio

自闭症网瘾萝莉.ら 提交于 2019-12-18 08:56:21
问题 Is there a way to collapse all the files at once in the Solution Explorer window in Visual Studio? 回答1: Use the extension Collapse Solution . Usually, this feature comes with ReSharper, but I presume that you are not using ReSharper. There are also a lot of macros out there that help you do the same. One of them is in ‘Collapse All’ in Visual Studio . Note: There is no inbuilt way in Visual Studio to actually achieve this. And considering just how practical it is, I would have thought they

Visual Studio Solution — Any way to create a “special” folder?

和自甴很熟 提交于 2019-12-14 03:43:27
问题 Basically, I want one of my folders to appear above the other folders as a type of "special folder", similar to how Properties has it's own special place even though it's a folder, same with App_Data, etc. Is this possible? 回答1: By default, Visual Studio doesn't support adding special project folders. The Properties folder is hard-coded to behave the way that it does. However, anything is possible with code. You could build an extension to do this, but it wouldn't be simple. You'd probably

How to add custom icons to solution explorer in Visual Studio

依然范特西╮ 提交于 2019-12-12 12:26:49
问题 I am trying to add custom icons to the solution explorer in Visual Studio, the same way the FileIcons extension does. I think I've done everything right for Visual Studio to associate the new icon with files ending with the .d and .di extensions, but Visual Studio still doesn't show any icon in the solution explorer. Here is the manifest generated with ManifestFromResources.exe : <?xml version="1.0" encoding="utf-8"?> <!-- This file was generated by the ManifestFromResources tool.--> <!--

Solution Explorer: limit search to selected folder

流过昼夜 提交于 2019-12-11 18:22:38
问题 A question of efficiency, when looking for a file within specific sub-folder of a project, how can I limit the search in Visual Studio's Solution Explorer just to the selected folder(s)? Typing query in Solution Explorer's will search all projects and all folders, giving vast majority of false positives and rendering its search box effectively useless. The only way I am aware of right now is to RMB -> Open Folder in File Explorer -> type query in Windows Explorer search box, then go back to

Visual Studio - Current file in Solution Explorer - Make it darker?

给你一囗甜甜゛ 提交于 2019-12-10 12:34:21
问题 I don't want to change the entire background color of solution explorer in VS, only the selected file. Hints? Thanks. 回答1: Check out Tools > Options > Projects and Solutions, and then check off "Track Active Item in Solution Explorer". This will make whichever file you're viewing/editing inside of Visual Studio automatically be selected in Solution Explorer and if your Windows color scheme is set up properly, it will in fact be darker. This option used to be on by default in 2003 and maybe