Visual Studio Code: Auto-Indenting Pasted Code

Developers who switched from Sublime Text to Visual Studio Code (hereafter VS Code) surely miss the “Paste and Indent” feature! When coding, copying and pasting code is unavoidable, and the indentation often gets messed up afterward, so you have to fix it by hand. Sublime Text provides a so-called Paste and Indent feature that automatically matches pasted code to the indentation of the current file. VS Code has a similar feature, but it works differently and must be enabled in the settings file. ...

February 15, 2017 · 2 min