About 52 results
Open links in new tab
  1. How do you format code in Visual Studio Code (VSCode)?

    Apr 30, 2015 · What is the equivalent of Ctrl + K + F and Ctrl + K + D on Windows in Visual Studio for formatting, or "beautifying" code in the Visual Studio Code editor?

  2. 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 …

  3. 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.

  4. How to indent/format a selection of code in Visual Studio Code?

    276 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 …

  5. How do you change the formatting options in Visual Studio Code?

    May 6, 2015 · I know you can Format Code using Ctrl + F / Cmd + F in Visual Studio Code but how do you change the formatting options for each language? For example, in Visual Studio …

  6. Is there a format code shortcut for Visual Studio?

    Jul 20, 2019 · 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?

  7. 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, …

  8. How can I make VS Code format my Python code? - Stack Overflow

    Jun 28, 2023 · How to use formatting: The code formatting is available in Visual Studio Code (VSCode) through the following shortcuts or key combinations: On Windows Shift + Alt + F On …

  9. Indent/format code in Visual Studio code on MAC - Stack Overflow

    Feb 2, 2016 · 20 (edited on 4th Jan 2023: the answer below still remains the same, in version 1.74.2, Nov 2022) For visual studio code version 1.36.1 (2019) To auto-format the selection, …

  10. VSCode: How do you autoformat on save? - Stack Overflow

    May 30, 2018 · In Visual Studio Code, how do you automatically format your source code when the file is saved?