![]() If the macro doesn't run, it could be because of a MS security patch. Quit Visual Studio and next time you open a solution containing solution.vssettings, it should load those settings.Drag solution.vssettings to any location in the Solution Explorer window.Click Next, then type 'solution.vssettings' as 'What do you want to name your settings file?' and save the file to wherever you have a solution you want to use those settings.To just export tab settings, uncheck 'All Settings' then check Options > Text Editor > C/C++.> Export selected environment settings > Next ![]() Use Tools > Options to change your UI to have the tab settings and whatever else you want set.'MsgBox("Uncomment this to see a message when settings are loaded")ĭTE.ExecuteCommand("Tools.ImportandExportSettings", "/import:""" & name & """") Change that code to the following: Private Sub SolutionEvents_Opened() Handles SolutionEvents.Openedĭim item As ProjectItem = ("solution.vssettings") In the upper-right dropdown, choose 'Opened'.Ĭode to handle the SolutionEvents.Opened event is automatically added.In the upper-left dropdown, choose 'SolutionEvents'.In the macro explorer window, double click 'EnvironmentEvents' on the left.Double click MyMacros > Module1 (if you don't have Module1, right click MyMacros and choose 'New module.' to create it).In Visual Studio 2008, open Tools > Macros > Macro explorer.Settings can include anything, from indents to colors or even window layout (I think). This method loads any number of exported settings that can be different for every solution. So, the accepted solution says "You just need to map your solutions to the required indentation", which is great, except how do you do that? After wasting a lot of time trying to figure that out, I found a method I prefer here. This creates an xml file with values like: NEXT_LINE Then at the bottom of the window, under Save To choose "Solution XYZ personal" (or shared, depending on your purpose). Resharper > Options > Code Editing > C# (or whatever language) > Formatting Style > Braces Layout not committed to source-control) or shared solution-specific settings (i.e. You can further specify if just for you (i.e. If you are using Resharper, you can save formatting settings (really, any settings) for just the solution. "Visual Studio, per solution settings" in case anyone stumbles here looking for that. However, it does apply in general terms i.e. UPDATE: seems like indentation is not managed by Resharper, so this answer does not actually address the specific question.
0 Comments
Leave a Reply. |