B
B
BonBon Slick2017-01-26 19:35:44
Keyboard
BonBon Slick, 2017-01-26 19:35:44

Visual Studio Code not formatting code?

I went to the docks , they say to press Ctrl+K Ctrl+F Format Selection editor.action.formatSelection pressed CTRL+K+F on the selected area, nothing. What am I doing wrong? Or is it necessary to register manually in the settings, or install a module?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
plartem, 2017-01-26
@BonBonSlick

Alt+Shift+F - code has different hotkeys

K
Konstantin Stepanov, 2017-01-26
@koronabora

I hold Cntrl, I press first K, then F. The code is automatically formatted throughout the document. 2015 update 2.

P
pervagabilis, 2018-12-18
@pervagabilis

There is just a difference between Ctrl+K+F and Ctrl+K Ctrl+F.
In the second case, you just need to use two keyboard shortcuts in a row, that is, first press Ctrl+K , release all keys and press Ctrl+F .

A
Alexey, 2018-10-20
@alexmirg

If in Russian:
Open
file > options > keyboard shortcuts
__
when the shortcuts open, in the search bar look for: "format document" in English. "format document"
There you will find the hotkeys you need
. My default is: ctrl + shift + i

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question