Can any one tell me how to turn off automatic outlining in Visual Studio? Outlining is the feature that collapses code into programmer defined regions.
In my opinion, there are precious few circumstances where outlining is useful. Yes, it makes large files easier to navigate, but mostly it obscures complexity. My preference would be to have this feature turned off by default when opening a source file.
In Visual Studio, go to Tools > Options > Text Editor > C# > Advanced
Clear the checkbox Enter outlining mode when files open
Tools -> Options -> Text Editor -> C# -> Advanced -> Outlining.
For VB it's Tools - Options - Text Editor - Basic - VB Specific - Enable outlining mode
For VS2008, it's under Tools – Options – Text Editor – C/C++ - Formatting - Enter outlining mode when files open.
For C/C++ in Visual 2017:
Go to Tools > Options > Text Editor > C/C++ > View
Then under > Outlining, set Enable Outlining to False.
Related
How does one change format settings (namely indentation size) in Visual Studio Community on macOS? Answers say to go to Tools > Options but there's no Options option in my Tools menu. If I recall it's somewhere in Preferences > Text Editor but I can't seem to find it.
Found it.
Preferences > Source Code > Code Formatting, choose your language and see Whitespace options in the Text Style tab.
You can use SHIFT + CMD + L to reformat existing files individually.
Visual Studio has the nice feature to autoformat your code.
Edit -> Advanced -> Format Document
Or you can use the according shortcut.
I would like to change some of the formatting settings for my language, which is X++ for Dynamics AX.
When I open the options menu (Tools -> Options), I see that there a lot of formatting options for C#, C++, HTML ... but none for X++ (except the usual use tab or whitespace options for intendation).
So my questions are:
What settings is Visual Studio using at the moment when I click
Format Document? It is definitly doing some things with the brace
style and not only changing intendation.
How can I change these settings - or how can I create my own set of formatting rules?
Any input is appreciated.
After upgrading to Visual Studio 2015, holding control while clicking on a symbol navigates to that symbol definition. In prior versions, this would instead select the entire word.
How can I disable the navigation event when CTRL + Click(ing) a symbol, so that it highlights the word?
I do have Resharper (Ultimate 9.2) installed. The configuration option under Environment -> Search & Navigation -> Go to Declaration on Control + Click in the editor is not checked.
All the search engine results make mention of this being a feature of the Productivity Power Tools extensions in previous versions of Visual Studio. I do not have that extension installed.
I found my solution in the "Options - Text Editor - General" settings. This was on VS 2017 thou.
To disable navigation to symbol definitions in VS2015,
this one worked for me.
With Resharper Ultimate 2016.3.1, I could fix the issue by disabling "Rich mouse navigation in the editor". It can be found in Resharper Options window, under Environment > Search & Navigation.
Maybe updating Resharper could solve the issue.
Also, Productivity Power Tools is not installed on my machine.
In vs 2017 this setting is available in Tools -> Options -> Text Editor -> General -> Enable mouse click to perform Go to Definition.
You can uncheck it!
Go to ReSharper Options > Environment > Search & Navigation, then uncheck the following options:
Rich mouse navigation in the editor
Enable 'Smart go to declaration'
I finally solved it following the info I found on this page..
edit
Ensure you are using Visual Studio as your resharper keyboard scheme.
Environment -> Keyboard & Menus
Tools -> Options -> Environment -> Keyboard
To stop the go to declaration, select it and input a new key short cut for it. In this image I have demonstrated that I changed this short cut to ctr num 1 and could not change it to ctr num 3. On testing crt click does not no take me to the declaration.
Find the shortcut you want to remove, in this case Edit.NavigateTo and remove.
An update for Productivity Power Tools + VS2017. Instead of having settings for this feature, a separate plugin gets installed. So after installing PPTs, you'll have a new extension called Ctrl+Click Go To Definition. Not sure why we need that tool considering it's baked into VS, but...
Anyway, Disabling that extension (plus the other things mentioned in other comments for VS and Resharper) fixed my ctrl+click woes.
To switch to the Visual C# keyboard mapping scheme
On the Tools menu, click Options.
Expand Environment, and then click Keyboard.
Select Visual C# 2005 from the Apply the following application
keyboard mapping scheme drop-down list.
or you can do
Keyboard: CTRL + W
also plugin can be used
Keyboard Shortcut Exporter
you can import/export keymapping file
How can I disable spelling check in Visual Studio 2010? By spelling check I mean in comments, string etc, not in actual code
In the Visual Assist X Options dialog on the Underlines page, uncheck the "Underline spelling errors in comments and strings" option.
Cory - This will disable syntax highlighting.
This is probably an extension you have installed. You needs to disable it in the extensions manager or configure it not to check spelling.
http://blogs.msdn.com/b/yardman/archive/2011/02/01/visual-studio-2010-spell-checker.aspx
For example in my install spell checking is provided by Visual Assist. If I disable this extension then the squigglies in comments go away.
I'm fairly certain VS2010 doesn't have a built in spell-checker, however, the C/C++ options contain IntelliSense which can cause "red squiggles." Here's how to disable those:
Tools -> Options -> Text Editor -> C/C++ -> Advanced
Under "IntelliSense" will be an option called "Disable Squiggles." Set it to true.
Had this problem in Visual Studio 2019. Turned out it was my Resharper extension. Extensions->Resparper->Options->Tools->Respeller->Enable Respeller (uncheck)
in javascript I solved this by going to Tools > Options > TextEditor > Javascript > advanced > Uncheck Show Syntax Errors.
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.