In Visual Studio 2010 how can I disable outlining in XAML files please? Or even better just disable outlining entirely for everything.
Every time I move the mouse from the editor pane to the Solution Explorer the mouse crosses over that stupid outlining widget and causes half the editor to start flashing, it's the most irritating thing ever.
I haven't tried it, but I believe setting
<Category name="XAML_Formatting" Category="{dac05320-0c3a-4ead-a332-8c23b0cfc130}" Package="{e58c2a8b-bcc4-4559-ad59-d62eb6d58a22}" RegisteredName="XAML_Formatting" PackageName="Microsoft.VisualStudio.Xaml">
<PropertyValue name="AutoOutlining">False</PropertyValue>
</Category>
in your Visual Studio settings file (.vssettings) should work.
In order to disable outlining entirely you need to set a few more variables in that file to false.
An example of a vssettings file is avaliable here, though this isn't a recommended configuration or anything just an example.
<PropertyValue name="EnterOutliningModeOnOpen">0</PropertyValue> for the C# and J# sections
<PropertyValue name="AutoOutlining">False</PropertyValue> for XML
<PropertyValue name="Outlining">False</PropertyValue> for Basic (I presume VB)
The following values for C & C++.
<PropertyValue name="EnterOutliningModeWhenFilesOpen">false</PropertyValue>
<PropertyValue name="AutomaticOutliningOfStatementBlocks">false</PropertyValue>
<PropertyValue name="AutomaticOutliningOfPragmaRegions">tfalse</PropertyValue>
Regarding the GUI method of turning off outlining for various languages in Visual Studio see here.
Alternately you could implement a custom language service that has outlining disabled and that is set to override all language settings as part of your Visual Studio settings file. Though this approach is probably more trouble than it is worth.
Related
I'd like to add Notepad++ to the "Open With..." menu for all file types in Visual Studio 2013. I followed these directions to create it for one file (in my case, a .edmx file), but Notepad++ still does not appear as an available editor in any other type (e.g. .tt, .cd).
How do I add Notepad++ as an option for all file types, rather than adding it to each file type one by one? Many of the built-in editors (e.g. "JSON Edtior", "XML (Text) Editor") are available for all files, regardless of type, so it should be possible.
It is pretty easy. I use VS2012 and it works for me. Pretty sure this is the same for VS2013. Make sure you pick the Notepad++.exe from the C:\Program Files (x86)\Notepad++\ .
You don't need any Arguments for the "Add Program" dialog box. Just specify the path to the Notepad++.exe and a friendly name. That's it.
So I looked in the CurrentSettings.vssettings file, and found that the relevant settings are at name="Environment_DefaultEditors", as in the following block:
<Category name="Environment_DefaultEditors" Category="{68161AEE-BCA8-4214-B2E4-7875263E49C5}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_DefaultEditors" PackageName="Visual Studio Environment Package">
<PropertyValue name="NumberOfMappings">0</PropertyValue>
<PropertyValue name="NumberOfDefaultEditors">5</PropertyValue>
<PropertyValue name="DefaultEditor>0">cd>0>NoGuid>NoGuid</PropertyValue>
<PropertyValue name="DefaultEditor>1">config>0>NoGuid>NoGuid</PropertyValue>
<PropertyValue name="DefaultEditor>2">cs>0>NoGuid>NoGuid</PropertyValue>
<PropertyValue name="DefaultEditor>3">edmx>0>NoGuid>NoGuid>1>Notepad++?"C:\Program Files (x86)\Notepad++\notepad++.exe"</PropertyValue>
<PropertyValue name="DefaultEditor>4">tt>0>NoGuid>NoGuid</PropertyValue>
</Category>
So the PropertyValues are only generated if you try "Open With..." for the file type at least once. Also, the settings really are only on a filetype-by-filetype basis; the "Default JSON Editor" and such are hardcoded into Visual Studio.
So barring a (possible) programmatic way to edit the settings file directly, this is not possible.
this drives me crazy.
Visual Studio does not format Web.config the same way than IIS Manager, which prevent easy diffing of different versions or the same file editing in both tools.
When Visual Studio edits a Web.config thru a wizard (like adding a reference) or when you click on Edit\Format Document (Ctrl+K, Ctrl+D), Visual Studio formats the XML in a beautiful way.
Unfortunately, if you change a value in IIS, it will reformat it with a different style.
Do you know any workaround?
no matter how ugly the xml is inside a file, when you open the file with visual studio press control k and then control d and it will format the XML for you instantly.
My Visual Studio 2010 is too slow most of the time. So I decided to disable the vs2010 Intellisense. Can any one help me?
For C/C++: Tools -> Options -> Text Editor -> C/C++ -> Advanced -> Disable IntelliSense.
Update: This also works with VS2012.
Microsoft doesn’t provide any way to disable Intellisense. This wouldn’t be a problem, except Intellisense can and does crash.
To disable Intellisense, close Visual Studio and navigate to your vcpackages folder:
C:\Program Files\Microsoft Visual Studio 8\VC\vcpackages
Rename the file feacp.dll to something like foulup.dll. Now Visual Studio won’t be able to load Intellisense, but rather than crash it will just quietly drop its features.
or
Also have look to this solutions : how to disable intellisense...
Ctrl + J.
In case you are using ReSharper the way to disable IntelliSense is as following: ReSharper > Options... > Environment > IntelliSense > Autopopup > Enable Automatic IntelliSense Popup > Uncheck > Save > Profit.
This also works in Visual Studio 2012 for C#.
Simplest way I can think of: change the file extension association so that *.cs files open in a plaintext document window, not the C# editor. Repeat for other extensions as desired.
It's actually easy for most languages:
Select Tools/Options on the menu. On the Options dialog box, select Text Editor, then select the language you use, then select "General". Uncheck "Auto list members" and "Parameter completion".
Works on VS 2012, 2010, and others, and seems to be available for most languages including C#, Basic, and C/C++.
Change the file extension to ".txt "
Edit without intellisense.
Change file extension back to what it was.
I'm a big fan of ReSharpers "cleanup code" feature. Especially the Solution wide clean up.
But I use Visual Studio's Ctrl+K+D (Format document), it formats the code slightly differed than ReSharper.
I'm on a quest to align ReSharper with Visual Studio (not the other way... because you can not share Visual Studio settings in the solution/source control system).
So I'm after something like this:
<Configuration>
<CodeStyleSettings>
<Sharing>SOLUTION</Sharing>
<CSharp>
<FormatSettings>
<SPACE_AROUND_MULTIPLICATIVE_OP>True</SPACE_AROUND_MULTIPLICATIVE_OP>
<SPACE_BEFORE_TYPEOF_PARENTHESES>False</SPACE_BEFORE_TYPEOF_PARENTHESES>
</FormatSettings>
</CSharp>
</CodeStyleSettings>
</Configuration>
Which other settings will help ReSharper format code like Visual Studio?
The solution we use is to remap Visual Studio's shortcut for "Format Document Ctrl+K, Ctrl+D" to ReSharper's Code Cleanup. We also use a plugin to manage sharing ReSharper settings through source control. The built in ReSharper shared settings functionality does not share all settings e.g. Inspection Severities and custom Code Cleanup profiles.
I have a blog article that describes sorting the keyboard mapping out, and setting up the "manage settings" plugin:
Here is how I've mapped Visual Studio's shortcut for "Format Document Ctrl K, D" to Resharper's Code Cleanup:
Is there a way to enable/disable the "View Whitespace" feature in Visual Studion on a per-filetype basis? I'd like to be able to edit python files with visible whitespace, but not other types.
Unfortunately, there is not a way to do this. The 'View White Space' setting (available from the Edit|Advanced|View White Space' menu option) is stored in the registry, which means the setting is applied to all files and all sessions of Visual Studio.
The next best thing is learn the shortcut key and toggle the feature on and off as necessary. For Visual Studio 2008, the shortcut is Ctrl+E, S.