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. Sublime Text is a slick, responsive cross-platform text editor that the developer community swears by. When you make a purchase using links on our site, we may earn an affiliate commission. [I added as a new answer since I could not add comments. Published Speed up text editing in Sublime Text 3 with our keyboard shortcuts cheat sheet. 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. Type this command: git config -global core.editor 'code -wait'. Its one of the most popular text editors out there, but if you already have a. Using this information, Sublime Text can intelligently display only viable build systems to the user. For more information, see 'Setting up VS Code' in the VS Code documentation. In this course I recommend Sublime Text 3 for editing code on both a Mac and PC. Build systems have various ways they can associate themselves with files and projects. The second Ctrl- / then surrounds that in A new build system can be created by the Tools Build System New Build System menu item or the Build: New Build System command palette entry. GUI based editors available across platforms (gedit, notepad++, sublime text 2 just. For my case, the /usr/local/bin/sublime actually points to /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl. The following are the three most commonly used command line editors. According to the menu Edit > Comment these shortcuts should be valid, but in Sublime Text 3 (build 3047) they no longer seem to work. You can do that by running: ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime This creates a symbolic link between two files. Which comments out the script tag, but adds " //" text to your webpage. In Sublime Text 2 it was possible to comment out a line or a block of lines with Ctrl + / and Ctrl + Shift + /. The first Ctrl- / adds // to the beginning of the line,.Ctrl- / will insert // style commenting, for javascript, etcīut does not work perfectly on HTML tags.Ĭtrl- / twice (ie Ctrl- / Ctrl- /) will effectively comment out the line:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |