![]() ![]() and Ctrl- Shift- / method of commenting out one's code in sublime. ![]() I since discovered the / / trick for HTML script tags and decided to share this additional information, since it requires a slight variation of the usual catch-all (and reported above) I included this info because this is the info I was looking for, and this is the only related StackOverflow page from my search results. To uncomment something, highlight it, then Ctrl+Shift+D, or Format > Uncomment Selection menu. This will place the // at the beginnig of every line automaticallay. ![]() [I added as a new answer since I could not add comments. You can easily comment whole code blocks by highlighting (one or) more lines and then press Ctrl+D or from the menu: Format > Comment Selection. It is more useful than // which must be positioned at. To uncomment the selected text, click the 'Uncomment' button or type 'Ctrl' + 'T'. Alternatively, select the code and type 'Ctrl' + 'R'. This inserts a '' symbol in front of each selected line. Another way to comment a block of code is to use / at the beginning and / at the end. To comment out a large block of code in the Editor or Live Editor, select the code and on the 'Editor' or 'Live Editor' tab, click the 'Comment' button. Maintenance, upgrade and readability of any piece of code are easier if comments are inserted now and then explaining the code. The slashes as well as all the following characters up to the end of the lines are not interpreted. To comment out a large block of code in the Editor or Live Editor, select the code and on the 'Editor' or 'Live Editor' tab, click the 'Comment' button. style comments, which accomplishes the task.Ĭtrl- Shift- / does not produce multi-line comments on HTML (or even single line comments), but doesĪdd /* */ style multi-line comments in Javascript, text, and other file formats. A sequence of two consecutive slashes // out of a string definition marks the beginning of a comment. Comment lines in MATLAB start with the symbol, rather than with // as in.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |