How to format and paste vscode
There are two setting methods for formatting and pasting code in vscode:
1. Click [File] - [Preferences] - [Settings]
Input "editor.formatOnPaste": true, in setting.json
2. Search Format On Paste in [Settings] and find the following configuration
for this setting The function is to automatically format this part of the code for us after we paste it. By manually operating the formatting function, we found that this is indeed the case
Recommended related article tutorials:vscode Tutorial
The above is the detailed content of How to format and paste vscode. For more information, please follow other related articles on the PHP Chinese website!