2015-4-30 Microsoft在2015年4月30日Build 开发者大会上正式宣布了 Visual Studio Code 项目:一个运行于 Mac OS X、Windows和 Linux 之上的,针对于编写现代 Web 和云应用的跨平台源代码编辑器。. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications. Download Visual Studio Code - Mac, Linux, Windows This site uses cookies for analytics, personalized content and ads.
-->When debugging or experimenting with code, it can be useful to comment blocks of code either temporarily or long term.
Microsoft Code For Mac
To comment out an entire block of code:
- Select the code and select Toggle Line Comment(s) from the context menu
OR
- Use the
cmd + /
keybinding on the selected code.
These methods can be used to comment and uncomment sections of code. In C# files, additional levels of line comments can be added, which allows regions of codes to be commented and uncommented, while still preserving actual comments:
Comments are also useful for documenting code for future developers that may interact with it. These are usually done in the form of multi-line comments, which are added in the following way in each language:
C#
Visual Studio 2019 For Mac
F#