Update index.md (#26286)

Improved IDE shortcut section by including linux and reworking list and made shortcuts clearer by using <kbd> for buttons
This commit is contained in:
wheat779
2018-11-23 07:37:04 -08:00
committed by Aditya
parent 4f56f7238c
commit ab617a762a

View File

@ -65,11 +65,15 @@ hello();
<h3>Many IDEs come with a keyboard shortcut to comment out lines. </h3>
<ol>
<li>Highlight text to be commented</li>
<li>Mac: Push Command(Apple Key) & "/"</li>
<li>Windows: Push Control & "/"</li>
<li> Use hotkeys to comment out highlighted block
<ul>
<li>Mac: Push <kbd>Command</kbd> + <kbd>/</kbd></li>
<li>Windows: Push <kbd>Control</kbd> + <kbd>/</kbd></li>
<li>Most Linux Distros: Push <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>A</kbd></li>
</ul>
</li>
<li>You can also uncomment code by doing the same steps</li>
</ol>
A shortcut to comment out a section of javascript in many code editors is to highlight the lines of code you want to comment out, then press `Cmd/Ctrl + /`.
Comments are also very helpful for code testing as you can prevent a certain code-line/block from running