Home>Article>Development Tools> How to format and paste vscode

How to format and paste vscode

Mary-Kate Olsen
Mary-Kate Olsen Original
2020-02-05 12:10:06 3720browse

How to format and paste vscode

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, insetting.json

2. Search Format On Paste in [Settings] and find the following configuration

How to format and paste vscodefor 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

How to format and paste vscode

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn