CharType
CharType

Reputation: 420

(Visual Studio Code) How to indent selection?

I recently started using Visual Studio Code, and I'm wondering if there is any command to automatically indent a selected section of code. I'm looking for something similar to the Re-Indent Current Line or Selection option in Netbeans. I tried using Reindent Selected Lines, but that isn't doing anything. Does anyone know how to do this? Thanks.

Upvotes: 1

Views: 4401

Answers (1)

Zak Avery
Zak Avery

Reputation: 304

'CTRL + K, CTRL + F' formats the current selection: https://blogs.msdn.microsoft.com/zainnab/2010/05/19/format-the-current-document-or-selection/

'SHIFT + ALT + F' formats the whole document including indents.

Upvotes: 2

Related Questions