About 48,300 results
Open links in new tab
  1. How do you auto format code in Visual Studio? - Stack Overflow

    Apr 22, 2011 · Click menu Edit → Advanced → *Format Selection, or press Ctrl + K, Ctrl + F. Format Selection applies the smart indenting rules for the language in which you are …

  2. 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: Select the lines you want to indent. Use Ctrl + ] to indent them. If you want to format a section (instead of indenting it): …

  3. How to shift a block of code left/right by one space in VSCode?

    Dec 20, 2017 · While these methods work, newer versions of VS Code uses the Ctrl +] shortcut to indent a block of code once, and Ctrl + [ to remove indentation.

  4. How to Automatically Indent Your Code in Visual Studio Code

    Dec 1, 2022 · In this guide, I will show you three ways to indent your code in visual studio code automatically. You can access the global user settings via the command pallet. Use Ctrl + …

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

    Jan 11, 2024 · Use the Formatting options page and its subpages (Indentation, New Lines, Spacing, and Wrapping) to set options for formatting code in the code editor. To access this …

  6. Changing Indentation in VS Code - It's FOSS

    1 day ago · VS Code lets you control indentation your way, whether you want to set it globally, per project, or even per language basis.

  7. Format Code in Visual Studio (With Indentation)

    Aug 17, 2022 · Using Visual Studio, you can click on Edit -> Advanced -> Format Document. If you want to auto-format code on save in Visual Studio, then you will have to download a …

  8. How to Indent Multiple Lines in VS Code - HatchJS.com

    Learn how to indent multiple lines in VS Code with this step-by-step guide. Includes instructions for using the keyboard, the editor, and the command palette.

  9. c# - Indentation shortcuts in Visual Studio - Stack Overflow

    Jan 26, 2012 · tab & shift+tab works for indenting Python code in Visual Code Code 1.11. In Visual Studio 2015 and onwards theres Edit > Format Selection (Ctrl + K, Ctrl + F) which …

  10. Aligning And Formatting The C# And ASPX/CSHTML Code Using Visual Studio

    For example, to set Smart formatting for Visual Basic, select Smart from the Indenting group box in Text Editor, Basic, and Tabs. Select the text you want to automatically indent. Click Format …

  11. Some results have been removed
Refresh