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?
The code formatting is available in Visual Studio Code through the following shortcuts:
Alternatively, you can find the shortcut, as well as other shortcuts, through the 'Command Palette' provided in the editor with Ctrl +Shift+ P (or Command + Shift + P on Mac), and then searching for format document.
Open command palette (Win: F1 or Ctrt+Shift+P)
Find 'Change Language Model'
Select language e.g. json
. By now syntax should be highlighted.
Format document (e.g. Open Command Palette -> 'Format Document')