Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of making comments by vscode

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the method of vscode comments, I hope you will learn a lot after reading this article, let's discuss it together!

Accidentally open a previously written markdown file, edit in vscode, found that pressing the tab key indentation (indent) is 2 spaces, whether it is list, or non-list normal indentation.

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

Look at and modify the properties of tab, space, indent and other keywords in settings one by one, but you can't find out why.

Google said "vscode indent 2 space markdown" and hit the answer.

First, there is a display on the status bar.

The indentation is 4 space:

The indentation is 2 spaces:

Click on the status bar directly and you can modify it.

From the above picture, vscode also knows that I specified 4, but wants to set me not 2, may be recognized what, according to the indentation in my current file to make changes?

On this basis, it is speculated that there should be such an attribute to feel whether or not to carry out this kind of detection.

It's a little uncomfortable to be such an AI.

After reading this article, I believe you have a certain understanding of vscode annotation methods, want to know more related knowledge, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report