
How do you auto format code in Visual Studio? - Stack Overflow
Apr 22, 2011 · I know Visual Studio can auto format to make my methods and loops indented properly, but I cannot find the setting.
How do you format code in Visual Studio Code (VSCode)?
Apr 30, 2015 · Visual Studio Code allows the user to customize the default settings. If you want to auto format your content while saving, add the below code snippet in the work space settings …
Is there a format code shortcut for Visual Studio?
Feb 9, 2011 · In Eclipse there is a shortcut, Ctrl+Shift+F, that re-indents code and fixes comments and blank lines. Is there an equivalent for Visual Studio 2010?
How to indent/format a selection of code in Visual Studio Code?
I want to indent a specific section of code in Visual Studio Code. I read How do you format code in Visual Studio Code? that gives shortcuts to indent the whole code, but it doesn't work when …
How to format code in Visual Studio Code on Windows
How can I format code in Visual Studio Code in the last update on Windows. I tried Ctrl + K, Ctrl + D doesn't work... I also tried Shift + Alt + F. It didn't work either. I tried the following solution, …
C# editor formatting options - Visual Studio (Windows)
Apr 20, 2025 · Learn how to use the Formatting options page and its subpages to set options for formatting code in the code editor when you're programming in C#.
选项、文本编辑器、C/C++、格式设置 - Visual Studio (Windows)
Jun 12, 2025 · 还可以创建自定义格式定义 .clang-format 或 _clang 格式文件。 如果此类文件存在于项目文件夹中,Visual Studio 会使用它设置该文件夹中的所有源代码文件及其子文件夹中的 …
How do you auto format code in Visual Studio on save?
Jan 21, 2020 · The plugin Format document on Save seems to to do what you ask: Enables auto formatting of the code when you save a file. Visual Studio supports auto formatting of the code …
How do you format code on save in VS Code - Stack Overflow
For those who are new to Visual Studio Code and searching for an easy way to format code on saving, kindly follow the below steps. Open Settings by pressing [Cmd+,] in Mac (or [Ctrl+,] in …
Codeformatoptionen und Codebereinigung - Visual Studio …
Jun 12, 2025 · Für den gesamten Code, den Sie in Visual Studio basierend auf den Einstellungen für die Seite ".NET-Optionen " oder " C/C++-Optionen " des Text-Editors bearbeiten. Sie …