To format a selection: Ctrl+K, Ctrl+F
To format a document: Ctrl+K, Ctrl+D
See the pre-defined keyboard shortcuts. (These two are Edit.FormatSelection
and Edit.FormatDocument
.)
Note for macOS
On macOS, use the CMD ⌘ key instead of Ctrl:
- To format a selection: CMD ⌘+K, CMD ⌘+F
- To format a document: CMD ⌘+K, CMD ⌘+D
Related Posts:
- What are the differences between Visual Studio Code and Visual Studio?
- What are the differences between Visual Studio Code and Visual Studio?
- How to download Visual Studio Community Edition 2017 (not 2019)
- How to download Visual Studio Community Edition 2015 (not 2017)
- How to declare a global variable in C++
- Visual Studio doesn’t see Team Explorer
- Visual Studio error “Object reference not set to an instance of an object” after install of ASP.NET and Web Tools 2015
- How do I install a NuGet package .nupkg file locally?
- Cannot Connect to Server – A network-related or instance-specific error
- ERROR: Cannot open source file ” “
- An error occurred while signing: SignTool.exe not found
- How to fix “Root element is missing.” when doing a Visual Studio (VS) Build?
- Check in / Check out in subversion
- C++ cannot open source file
- Why Visual Studio 2015 can’t run exe file (ucrtbased.dll)?
- Cannot open Visual Studio – throw error ‘cannot run when setup is in progress’
- Stuck while installing Visual Studio 2015 (Update for Microsoft Windows (KB2999226))
- Fresh installed Visual Studio 2017 won’t create C++ project with error 0x80041fe2
- This project references NuGet package(s) that are missing on this computer
- Source information missing from the debug information for this module – PDB successfully loaded
- Visual Studio – vdproj is incompatible
- Are Visual Studio 2017 Build Tools still available for download?
- What is vshub.exe in the system tray?
- serviceHub.Host.CLR.x86 taking a lot of memory and CPC
- Visual Studio Project vs. Solution
- Preventing console window from closing on Visual Studio C/C++ Console application
- Error ‘LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt’ after installing Visual Studio 2012 Release Preview
- What does Visual Studio mean by normalize inconsistent line endings?
- Visual Studio 2015 Intellisense not working
- Is there a list of Visual Studio environment variables? [duplicate]
- “Are you missing an assembly reference?” compile error – Visual Studio
- Error HRESULT E_FAIL has been returned from a call to a COM component VS2012 when debugging
- The project type is not supported by this installation
- How do I open a Visual Studio project in design view?
- Visual Studio not displaying compile time errors in editor
- XML schema error – root element of a w3c xml schema
- Web Developer Tools option must be installed
- LINK : fatal error LNK1104: cannot open file ‘D:\…\MyProj.exe’
- Unable to launch the IIS Express Web server
- How can I rename a project folder from within Visual Studio?
- Visual studio Express Edition vs Community
- Visual Studio: Add existing folder(s) to project
- Unresolved external symbol in object files
- Why the range of int is -32768 to 32767?
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- Remove secure warnings (_CRT_SECURE_NO_WARNINGS) from projects by default in Visual Studio
- ‘cannot find or open the pdb file’ Visual Studio C++ 2013
- Unity OnTriggerEnter2D not registering
- What’s the difference between Visual Studio Community and other, paid versions?
- What is “stdafx.h” used for in Visual Studio?
- Installation of MySQL for Visual Studio 1.2.8 failed
- wntdll.pdb not loaded – Can’t see the exception
- Visual Studio /**/ comment shortcut?
- Cannot open include file: ‘stdio.h’ – Visual Studio Community 2017 – C++ Error
- How to remove error about glyphicons-halflings-regular.woff2 not found
- “Error while trying to run project: Unable to start program”. Can run program only once. Then VS needs restart
- WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for ‘jquery’. Please add a ScriptResourceMapping named jquery(case-sensitive)
- How do I create a Shared Code project (.shproj)
- How do I fix the indentation of selected lines in Visual Studio
- How do I remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?
- Microsoft Visual C++ 9.0 is required
- 8 queens puzzle with user input c++
- CMake error at CMakeLists.txt:30 (project): No CMAKE_C_COMPILER could be found
- Visual Studio: The Operation could not be completed. The parameter is incorrect
- Error C1083: Cannot open include file: ‘stdafx.h’
- C# – How to convert string to char?
- How to use Java in Visual Studio 2017
- Nuget connection attempt failed “Unable to load the service index for source”
- “The system cannot find the file specified” when running C++ program
- Cannot open Windows.h in Microsoft Visual Studio
- What is the purpose of the vshost.exe file?
- “A project with an Output type of Class Library cannot be started directly”
- “A project with an Output type of Class Library cannot be started directly”
- How to get relative path of a file in visual studio?
- LINK : fatal error LNK1561: entry point must be defined ERROR IN VC++
- Automatic indentation for Python in Notepad++
- How to make a simple popup box in Visual C#?
- Visual Studio keeps crashing
- Proper way to rename solution (and directories) in Visual Studio
- How can we generate getters and setters in Visual Studio?
- Visual Studio compiles but the exe isn’t there
- The name ‘InitializeComponent’ does not exist in the current context
- C# Debug – cannot start debugging because the debug target is missing
- Difference between
and - The name ‘ViewBag’ does not exist in the current context – Visual Studio 2015
- Create html documentation for C# code
- The provider did not return a ProviderManifestToken string Entity Framework
- Differences between Commit, Commit and Push, Commit and Sync
- Unity 5.2.2 changing Visual Studio back to MonoDevelop
- Where can I read the Console output in Visual Studio 2015
- Indent Expected?
- Download c++ in existing visual studio 2017
- How do I autoindent in Netbeans?
- How to correct indentation in IntelliJ
- Adding spaces in multiple lines simultaneously – in Pycharm
- What is a “first chance exception”?
- Go To Definition: “Cannot navigate to the symbol under the caret.”
- Unity Scripts edited in Visual studio don’t provide autocomplete
- module unsafe for SAFESEH image C++
- How to solve “Microsoft Visual Studio (VS)” error “Unable to connect to the configured development Web server”