filmov
tv
Module 1. Day 1. Comments
![preview_player](https://i.ytimg.com/vi/M6zM37VxP_Y/maxresdefault.jpg)
Показать описание
You can insert comments into your code like with any other programming language. In the 1C: Enterprise, they start with a double slash (//) and extend to the end of the physical line.
Commenting on your code is important, especially if you are working on a huge project, or you are working as a team with other developers, or you are going to maintain the code for a long time. It makes the code readable and less complicated.
//Message ("Hello, World!");
Message ("Hello, World!");
Thus, we have the whole line commented.
To (un)comment selected lines of code, you can use this buttons.
The platform will ignore the code in the comments. So in this example no dialog will appear.
Commenting on your code is important, especially if you are working on a huge project, or you are working as a team with other developers, or you are going to maintain the code for a long time. It makes the code readable and less complicated.
//Message ("Hello, World!");
Message ("Hello, World!");
Thus, we have the whole line commented.
To (un)comment selected lines of code, you can use this buttons.
The platform will ignore the code in the comments. So in this example no dialog will appear.