Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Formatting - at once - all the files in a Visual Studio project

I am interested in formatting all the files in a Visual Studio (ver. 2005) project all at once.

Currently, there is a way to format a single document by doing something like Edit->Advanced->Format Document. However, I don't see a single command to format all the files of a project all at once.

Any idea how to do that?

like image 262
Dan Avatar asked May 31 '09 05:05

Dan


People also ask

How do I format all files in a Visual Studio Code project?

VS Code has great support for source code formatting. The editor has two explicit format actions: Format Document (Ctrl+Shift+I) - Format the entire active file. Format Selection (Ctrl+K Ctrl+F) - Format the selected text.

What is the fastest way to format code in Visual Studio?

In the default configuration for Visual Studio Code, the command can be run using the shortcut Alt+Shift+F. To format a range, in an already opened project, open the document that you want to modify, select the specific range to format, right-click, and select Format Selection.

Which tool can be used to format multiple files at once?

The format painter lets you copy all of the formatting from one object and apply it to another one – think of it as copying and pasting for formatting.


1 Answers

The Format All Files extension worked for me. Nothing to do, just install and click!

like image 193
Mikhail Avatar answered Oct 25 '22 21:10

Mikhail