Home > Development Tools > VSCode > body text

How to automatically add double quotes in vscode

王林
Release: 2020-03-24 17:23:40
Original
7393 people have browsed it

How to automatically add double quotes in vscode

1. Install the Prettier plug-in

Prettier - Code formatter

2. Configure the following in the setting.json configuration

(Recommended learning video tutorial: java video tutorial)

"prettier.useEditorConfig": false,  
"prettier.semi": true,  // 是否带分号
"prettier.singleQuote": true  // 是否为单引号
Copy after login

3. Use vscode’s own formatting

Alt Shift F

Recommended tutorial: vscode tutorial

The above is the detailed content of How to automatically add double quotes in vscode. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template