当前位置:网站首页>Vs compiler annotation style
Vs compiler annotation style
2022-04-22 08:52:00 【Holy meow】
This chapter is an introduction.
It mainly introduces C The annotation style of language ,C++ The annotation style of , How to quickly annotate a large piece of code , Why do you need comments .
Now? VS The compiler has two annotation styles :
- C Notes on language style
/*xxxxxxxx*/
defects : You can't nest comments , Because when nested calls, you only encounter*/It will be considered as the end of nesting , It doesn't match .

- C++ Style notes
//xxxxxxx
You can comment on one line or multiple lines .

How to annotate a large piece of code at once
First let's open up VS compiler , Then, as shown in the figure, there are two function keys in the item bar : Comment row and Uncomment , The shortcut key for the comment line is (Ctrl + K + C), The shortcut key for undoing comments is (Ctrl + K + U).

Then select a piece of code and press the function key or shortcut key to complete the comment

Why do you need comments ?
- Comments can help you sort out your thoughts when you write code ;
- Explain complex code , Increase readability ;
- Write comments when writing code , Helping others is also helping yourself ;

If this blog is helpful to you , Give bloggers a free like to show encouragement. Welcome to like comment collection ️, thank you !!!
If you have any questions or different opinions , Welcome to the comment area .
版权声明
本文为[Holy meow]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220749408726.html
边栏推荐
- Use serialize in the record node to automatically generate the table model and link the operation database (take PostgreSQL as an example)
- DTV专业术语
- SQL window function
- Cesium coordinate conversion: conversion between different coordinate systems
- ==与equals
- winkawaks1.45如何联机?winkawaks1.45怎样联机对战(其他版本类似)
- POI operation excel three swordsman
- const修饰变量
- nacos源代码编译中遇到的问题解决后整理如下
- Rhel7 - process management
猜你喜欢
随机推荐
Cesium realizes the monomer of buildings (divided into buildings and layers)
The problems encountered in the compilation of Nacos source code are sorted out as follows
CSDN如何转载文章
flume做采集的话,怎么解决小文件过多的问题
winkawaks1.45如何联机?winkawaks1.45怎样联机对战(其他版本类似)
服务器设置自动开机及定时开机
解决磁盘有空间但创建不了文件---修复服务器文件系统
Hyperledger Explorer 0.3.9 environment construction
PCIe学习-PCIe总线怎样做到在软件上兼容PCI总线(七)
Abbreviation for greater than / less than / equal to (abbreviation of SQL database includes mangodb)
Leaflet and cesium load Baidu map, and load custom style Baidu map
Operation steps for mysqlbin log playback
编程中GMT和CST的含义
Shell script learning notes - circular statements
window如何查看端口被占用
getchar函数的返回类型
机器学习之逻辑回归的步骤原理
winkawaks1. 45 how do I go online? winkawaks1. 45 how to play online (similar to other versions)
require-dev.mikey179/vfsStream is invalid, it should not contain uppercase characters. Please use m
sql查询去除空数据和null 字段









