How to make comments in vscode

hzc
Release: 2020-06-06 14:28:03
Original
5505 people have browsed it

How to make comments in vscode

I accidentally opened a previously written markdown file and edited it in vscode. I found that the indent when pressing the tab key is 2 spaces, whether it is a list or a non-list. Normal indentation.

It is normal to open other markdown or .c, .h, .cpp files.

I checked and modified the attributes of keywords such as tab, space, and indent one by one in settings, but I couldn't find the reason.

Googled "vscode indent 2 space markdown" and hit the answer.

Firstly, it is displayed on the status bar

The indentation is 4 spaces:

How to make comments in vscode

The indentation is 2 spaces:

How to make comments in vscode

Click the status bar directly to modify it.

How to make comments in vscode

From the picture above, vscode also knows that I specified 4, but it insists on setting it to less than 2. Maybe it has recognized something. Could it be that based on my current Have the indentations in the file been modified?
Based on this speculation, there should be such an attribute to determine whether to perform this kind of detection. Sure enough, there is:

How to make comments in vscode

It is really uncomfortable to do such an AI.

Recommended tutorial: "VSCode Tutorial"

The above is the detailed content of How to make comments 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!