From ab617a762a42e1a1e9436beda203db86a4dde389 Mon Sep 17 00:00:00 2001 From: wheat779 Date: Fri, 23 Nov 2018 07:37:04 -0800 Subject: [PATCH] Update index.md (#26286) Improved IDE shortcut section by including linux and reworking list and made shortcuts clearer by using for buttons --- guide/english/javascript/comments/index.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/guide/english/javascript/comments/index.md b/guide/english/javascript/comments/index.md index 60873d0a01..c32682984b 100644 --- a/guide/english/javascript/comments/index.md +++ b/guide/english/javascript/comments/index.md @@ -65,11 +65,15 @@ hello();

Many IDEs come with a keyboard shortcut to comment out lines.

  1. Highlight text to be commented
  2. -
  3. Mac: Push Command(Apple Key) & "/"
  4. -
  5. Windows: Push Control & "/"
  6. +
  7. Use hotkeys to comment out highlighted block +
      +
    • Mac: Push Command + /
    • +
    • Windows: Push Control + /
    • +
    • Most Linux Distros: Push Shift + Alt + A
    • +
    +
  8. You can also uncomment code by doing the same steps
-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