About 208,000 results
Open links in new tab
  1. How to automatic format code in Visual Studio - Microsoft Q&A

    Sep 13, 2021 · You may of used Format Document on Save Visual Studio extension. Enables auto formatting of the code when you save a file. Visual Studio supports auto formatting of the code with the CTRL+E,D or CTRL+E,F key shortcuts but with this extension the command 'Format Document' is executed on Save.

  2. C# editor formatting options - Visual Studio (Windows)

    Jan 11, 2024 · 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#.

  3. Code style options and code cleanup - Visual Studio (Windows)

    Nov 11, 2024 · You can define code style settings per-project by using an EditorConfig file, or for all code you edit in Visual Studio on the text editor Options page. For C# code, you can also configure Visual Studio to apply these code style preferences using the Code Cleanup (Visual Studio 2019, Visual Studio 2022) and Format Document (Visual Studio 2017) commands.

  4. Options, Text Editor, C/C++, Formatting - Visual Studio (Windows)

    Feb 26, 2025 · You can also create a custom format definition .clang-format or _clang-format file. If such a file is present in a project folder, Visual Studio uses it to format all source code files in that folder and its subfolders. By default, Visual Studio runs clang-format.exe in the background and applies formatting as you type.

  5. Keyboard shortcuts - Visual Studio (Windows) | Microsoft Learn

    Learn about the default keyboard shortcuts in Visual Studio that allow you to access a variety of commands and windows.

  6. Options, Text Editor, JavaScript, Formatting - Visual Studio …

    Mar 11, 2024 · Use the Formatting page of the Options dialog box to set options for formatting code in the Code Editor. To access this page, on the menu bar, choose Tools > Options, and then expand Text Editor > JavaScript/TypeScript > Formatting.

  7. Automatically reformat Python code in Visual Studio

    Apr 18, 2024 · Automatically format your Python code in Visual Studio, including the code spacing, statements, long line wrapping, and code comments.

  8. Codeformatoptionen und Codebereinigung - Visual Studio …

    Codeformateinstellungen können projektweise mithilfe einer EditorConfig-Datei oder für den gesamten Code, den Sie in Visual Studio bearbeiten, auf der Optionen -Seite des Text-Editors definiert werden. Für C#-Code können Sie visual Studio auch so konfigurieren, dass diese Codeformateinstellungen mithilfe der Befehle CodeBereinigung (Visual Studio 2019, Visual …

  9. 选项,文本编辑器,C/C++,格式设置 - Visual Studio (Windows)

    Jan 13, 2024 · 此外,还可创建自定义格式定义 .clang-format 或 _clang-format 文件。 如果项目文件夹中存在此类文件,Visual Studio 将使用它来设置该文件夹及其子文件夹中所有源代码文件的格式。 默认情况下,Visual Studio 在后台运行 clang-format.exe,并在你键入内容时应用格式设置。

  10. How to enforce .NET code format using EditorConfig and GitHub …

    Oct 10, 2023 · In this how-to article, you learn how to enforce your .NET code formatting using EditorConfig and GitHub Actions.

Refresh