First open VS. This article takes VS2013 as an example. Select "Tools—>Options" in the menu bar. Open the options window.
After opening the options window, select the "Text Editor" item on the left, and then set the language you want to apply.
Example 1: C# language, select the C# item on the left, then Format Settings -> General, uncheck "Automatically format when pasting" on the right That's it.
Example 2: HTML, select the HTML item on the left, then select the "Advanced" item, and set the "Format when pasting" on the right to False.
Example 3: Javascript, select the Javascript item on the left, then select the "Format Settings -> General" item, and check the box in front of "Format when pasting" on the right Just remove it.
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of Settings for vscode pasting code without indentation. For more information, please follow other related articles on the PHP Chinese website!