Home > Article > Development Tools > 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:
The indentation is 2 spaces:
Click the status bar directly to modify it.
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:
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!