Linked Questions

116 votes
7 answers
204k views

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?
Jichao's user avatar
  • 42.1k
37 votes
2 answers
6k views

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. ...
Spoeken's user avatar
  • 2,598
25 votes
2 answers
28k views

is there any way to auto-format HTML and Javascript code on saving in Visual Studio like Visual Studio Code?
Mohammad Ali Rony's user avatar
25 votes
3 answers
11k views

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 ?
Erez's user avatar
  • 6,446
15 votes
6 answers
5k views

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....
Ruddy's user avatar
  • 9,943
0 votes
3 answers
1k views

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 ...
Bob's user avatar
  • 91
3 votes
2 answers
2k views

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 ...
turoni's user avatar
  • 1,435
-4 votes
2 answers
3k views

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 ...
Agatha's user avatar
  • 1
2 votes
1 answer
2k views

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 ...
Jacko's user avatar
  • 88
0 votes
2 answers
1k views

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.
Ronald Abellano's user avatar
1 vote
1 answer
89 views

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?
pcdro's user avatar
  • 317