Rearranging property settings order in Visual Studio 2010 - visual-studio-2010

Is it possible in Visual Studio 2010 to rearrange the order of the settings (in the Project/Properties of the project) and then Settings tab.
I only can find the add, delete and edit options.

You can rearrange your settings manually.
Follow this link - http://ppe.blogs.msdn.com/b/zainnab/archive/2010/11/27/change-the-order-of-your-application-settings-vstipproj0024.aspx

You can sort ascending or descending by clicking the "Name" label at the top of the column for the setting names. Otherwise, no. I wouldn't think order is terribly relevant on the settings screen. That said, you can name your settings carefully to make it easier to navigate the list if you have a lot of settings entries.

Related

Disable Visual Studio code style recommendations

Is there a way to get Visual studio to stop spamming me with these messages?
Visual Studio version info
I am also running Resharper 2021.1.2 which I have set up with the recommendations I want.
This is what I did for my .NET Framework project:
Open up the project properties, and click the Code Analysis tab. You'll see the active rule is Microsoft Managed Recommended Rules. To the right, there's a Configure button. Click that.
There's going to be a notice at the top saying "This is a Microsoft rule set and cannot be modified." That's ok. Click the dropdown for Microsoft.CodeAnalysis.CSharp.Features and uncheck all of the IDE#### hints that are bothering you.
Hit ctrl+s to save your new ruleset. Because this is now a custom ruleset you will be prompted with a place to save it. You can save it anywhere and name it whatever you want.
Now, back in the Code Analysis tab in your project settings, click the Active rules dropdown. Second from the bottom there is a <Browse...> option. Choose that and select the .ruleset file you just saved in the previous steps.
For me my active rule is now Copy of Microsoft Managed Recommended Rules, so if you see that you're on the right track.
The IDE hints should now be gone!
I should add that something still didn't feel right with me. I eventually went through and deleted all my .dotsettings files and .editorconfig files, and reset my resharper settings (Extensions -> Resharper -> Options... -> Manage... -> Reset All Settings). This also fixed my unwanted hint problems.

How can I extend the environment tabs in Visual Studio 2013?

How do you extend Tabs in Visual Studio 2013? It would be handy to extend the Tabs so that you can selectively track an item in Solution Explorer by right clicking on a tab.
By default, Visual Studio will track active items in Solution Explorer via the setting: Tools > Options > Projects and Solutions > General > Track Active Item in Solution Explorer.
Having that turned on makes Solution Explorer jump around, and is consequently confusing on large projects, so I turn it off. But, what I'd like to be able to do, is right click on an open tab, and select a menu item to make Solution Explorer track and display that file's location in Solution Explorer. Basically it would be on-demand selective file tracking.
I know hovering over the tab, you can see the file path and locate it that way. What I would like is a quicker shortcut to displaying the file location in Solution Explorer.
If there is a plugin that already does this, please let me know and provide a link. Otherwise, I'd be interested in knowing how to do this myself. Thanks.
There is a button on the Solution Explorer toolbar Sync with Active Document and the corresponding command SolutionExplorer.SyncWithActiveDocument for keyboard binding.

VS2010 "Add Item" directory change

Is there any way to change the default directory Visual Studio 2010 uses when you add a source file through Add -> New Item?
Add New Item simply adds the item based on which project directory you're currently in or have selected in your Solution Explorer. If you want to change where it gets added then select the target location in the Solution Explorer first.
This behavior is obvious when right-clicking in the Solution Explorer, but it's also the same when using Project -> Add New Item....
Since my comment seems to be the actual answer, I repost:
In the toolbar of Solution Explorer, there's a button "Show all files" (or similar, I'm using the German version). This switches the view to directories, rather than filters. In this view, you can right-click on the desired target folder to add items.
This does not actually change the default directory, but since you have to click somewhere anyway to add an item, this is the easiest approach.
Note that even when only using Visual C++, I'd recommend the Productivity Power Tools extension, which comes with Solution Navigator. In C++, this is not as powerful as with .NET, but it still has several features that are useful in C++ and can fully replace Solution Explorer.
Try going to tools -> options -> Project and Solutions.
I know this post is old... but maybe someone will stumble upon it... like I did today...
I had the same "problem":
I have a dedicated directory for icons.
When I need to add an icon to the resource file, Visual studio takes me to "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE"
To fix the problem, after I "browsed" to the desired folder, I right-clicked the favorites of the "open file" dialog and selected "add current location to Favorites".
Next time you will get this dialog, you simply have to look for the folder in the favorites, and click it.

In Visual Studio 2010, is there a way to keep recently-used files from falling off the File Tab Channel?

In Visual Studio 2008 you could use Sara Ford's did you know #331 (Did you know… You can keep recently-used files from falling off the File Tab Channel? - #331) to make the tabs ordered in MRU (most recently used) order (i.e. the current window is always the left most tab, the previously visited window is second tab, and so forth).
The registry entry listed in the blog post does not appear to work in VS2010 and I have not figured out a way to get tabs listed in MRU. Does anyone know if there is a way in Visual Studio 2010 to keep the most recently-used file from falling off the File Tab Channel?
In the "Productivity Power Tools" extension, the Remove Tabs By Usage Order option seems to be what you are looking for.
Try installing the "Productivity Power Tools" extension - you can disable any other features that you don't use, but the customisation of the tab well is very useful. I don't think it does MRU order, but there are a number of other options that might help.
Another solution, if you are using Windows 7, would be to pin VS2010 to the task bar and then pin them to the programme tasks bar within that through drag and drop for instance.

How to use different tab settings in different projects in Visual Studio

The Visual Studio options dialog allows you to set tab preferences (size, insert-spaces, etc.) on a per-language basis. But I am regularly working on a couple of c# projects with different settings for these values.
Is there a way to override the global settings on a per-project basis, or at least toggle between them easily?
Another approach may be through the extensibility API: it should be possible to write a macro or add-in that changes these settings.
E.g. to change the tab size to 6, use the following:
DTE.Properties("TextEditor", "CSharp").Item("TabSize").Value = 6
Here's a link that explains how to find out the names of the properties: http://support.microsoft.com/kb/555445
You can open visual studio with a special "reset" settings file which overrides the default settings. Using this method it is possible to create two shortcuts, one with each tab setting. Details are here.
I'm afraid you can't do that on a per-project basis.
But, with Tools/Import and Export Settings... you can export each settings in a file and you could import the one that fits your current project.
Visual studio 2017 adds .editorconfig support, which is very handy for such settings.

Resources