Linked Questions
11 questions linked to/from How do you auto format code in Visual Studio?
116 votes
7 answers
204k views
How to automatically indent source code?
How can I automatically indent source code in Visual Studio 2010? I have used Ctrl + K, Ctrl + F, but it does not work; is there any other way/plugin to do this?
37 votes
2 answers
6k views
How does one paste and indent in Visual Studio Code?
In Sublime text cmd+shift+v will paste and indent the code. Can this be done in visual studio code? Workaround I've made an extension that will let you paste and format with cmd/ctrl+shift+v. ...
25 votes
2 answers
28k views
How do you auto format code in Visual Studio on save?
is there any way to auto-format HTML and Javascript code on saving in Visual Studio like Visual Studio Code?
25 votes
3 answers
11k views
Visual studio Reformat Code/Document
I can't find the Reformat button, I know I can use ctrl+k+d, but I wish to have also the toolbar with the button. can someone help me ?
15 votes
6 answers
5k views
Unminify / Decompress JavaScript
Original Question This maybe a stupid question but is there a way in VS 2013 to unminify JavaScript? Just making sure we are all on the same page here. Minify: var flashVer=-1;if(navigator....
0 votes
3 answers
1k views
C# if/else first statement working, the rest are not
I know this is probably very basic, and I googled it and have gone through the search, but I'm having an issue which a very basic if/else scenario. The first statement produces results, which tells ...
3 votes
2 answers
2k views
Visual studio 2017 reorders includes without asking
I was programming c++ in Visual studio 2017 and I suddenly noticed that visual studio had changed my includes to be ordered alphabetically. I'm not sure what triggered this reordering. I don't mind ...
-4 votes
2 answers
3k views
How to fix this error: "Identifier expected" [closed]
I am making a 2D game in Unity , for the first time. I'm writing a script, also for the first time, I watched some tutorials and I think it's not bad. However, I keep getting an error message and I ...
2 votes
1 answer
2k views
Automatically adding spaces before semicolon in Visual Studio 2015
I have been using VS2015 for about a year but I have had to reinstall it recently and I can't find the option to automatically add spaces to a expression as soon as a semicolon is entered. I have use ...
0 votes
2 answers
1k views
How to fix Visual Studio 2019 C# spacing for MyMethod ()
Whenever I do "Ctrl + k + d" the method "()" gets separated by space with its method name like this var x = MyMethod_(); The underscore shows the space.
1 vote
1 answer
89 views
How can i apply indentation on various files in visual studio 2015?
I saw on this link How do you auto format code in Visual Studio? how to apply indentation on files, but I need to apply this in more than 350 files, have a way to do this without open every file?