Ubuntu Visual Studio Code Toggle Comment no respond












0















I encountered an issue with toggle comment in visual studio code on Ubuntu. Default hot key was "ctrl+/", it didn't respond when I click on a line of code or highlighted the line of code. I changed the hot key to "ctrl+l" under preference -> Keyboard Shortcuts and it didn't respond too.



I tried to google this but nobody seems to encounter this issue or posted this question.



Is there something else I need to enable to make this work?










share|improve this question























  • Did you try to disable all extensions before using shortcut?

    – Ahmet Zeybek
    Apr 11 '18 at 6:51













  • do you mean the keymap extensions? or the extensions under settings like "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath"? Those in settings I left it as default. The ones in keymap extensions were all not installed.

    – user1342124
    Apr 11 '18 at 7:18











  • I mean all extensions maybe there is a conflict with it

    – Ahmet Zeybek
    Apr 11 '18 at 7:38











  • I tried toggling "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath" but still no respond for toggle comment.

    – user1342124
    Apr 11 '18 at 9:38
















0















I encountered an issue with toggle comment in visual studio code on Ubuntu. Default hot key was "ctrl+/", it didn't respond when I click on a line of code or highlighted the line of code. I changed the hot key to "ctrl+l" under preference -> Keyboard Shortcuts and it didn't respond too.



I tried to google this but nobody seems to encounter this issue or posted this question.



Is there something else I need to enable to make this work?










share|improve this question























  • Did you try to disable all extensions before using shortcut?

    – Ahmet Zeybek
    Apr 11 '18 at 6:51













  • do you mean the keymap extensions? or the extensions under settings like "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath"? Those in settings I left it as default. The ones in keymap extensions were all not installed.

    – user1342124
    Apr 11 '18 at 7:18











  • I mean all extensions maybe there is a conflict with it

    – Ahmet Zeybek
    Apr 11 '18 at 7:38











  • I tried toggling "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath" but still no respond for toggle comment.

    – user1342124
    Apr 11 '18 at 9:38














0












0








0








I encountered an issue with toggle comment in visual studio code on Ubuntu. Default hot key was "ctrl+/", it didn't respond when I click on a line of code or highlighted the line of code. I changed the hot key to "ctrl+l" under preference -> Keyboard Shortcuts and it didn't respond too.



I tried to google this but nobody seems to encounter this issue or posted this question.



Is there something else I need to enable to make this work?










share|improve this question














I encountered an issue with toggle comment in visual studio code on Ubuntu. Default hot key was "ctrl+/", it didn't respond when I click on a line of code or highlighted the line of code. I changed the hot key to "ctrl+l" under preference -> Keyboard Shortcuts and it didn't respond too.



I tried to google this but nobody seems to encounter this issue or posted this question.



Is there something else I need to enable to make this work?







visual-studio-code ubuntu-16.04






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 11 '18 at 6:36









user1342124user1342124

475




475













  • Did you try to disable all extensions before using shortcut?

    – Ahmet Zeybek
    Apr 11 '18 at 6:51













  • do you mean the keymap extensions? or the extensions under settings like "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath"? Those in settings I left it as default. The ones in keymap extensions were all not installed.

    – user1342124
    Apr 11 '18 at 7:18











  • I mean all extensions maybe there is a conflict with it

    – Ahmet Zeybek
    Apr 11 '18 at 7:38











  • I tried toggling "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath" but still no respond for toggle comment.

    – user1342124
    Apr 11 '18 at 9:38



















  • Did you try to disable all extensions before using shortcut?

    – Ahmet Zeybek
    Apr 11 '18 at 6:51













  • do you mean the keymap extensions? or the extensions under settings like "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath"? Those in settings I left it as default. The ones in keymap extensions were all not installed.

    – user1342124
    Apr 11 '18 at 7:18











  • I mean all extensions maybe there is a conflict with it

    – Ahmet Zeybek
    Apr 11 '18 at 7:38











  • I tried toggling "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath" but still no respond for toggle comment.

    – user1342124
    Apr 11 '18 at 9:38

















Did you try to disable all extensions before using shortcut?

– Ahmet Zeybek
Apr 11 '18 at 6:51







Did you try to disable all extensions before using shortcut?

– Ahmet Zeybek
Apr 11 '18 at 6:51















do you mean the keymap extensions? or the extensions under settings like "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath"? Those in settings I left it as default. The ones in keymap extensions were all not installed.

– user1342124
Apr 11 '18 at 7:18





do you mean the keymap extensions? or the extensions under settings like "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath"? Those in settings I left it as default. The ones in keymap extensions were all not installed.

– user1342124
Apr 11 '18 at 7:18













I mean all extensions maybe there is a conflict with it

– Ahmet Zeybek
Apr 11 '18 at 7:38





I mean all extensions maybe there is a conflict with it

– Ahmet Zeybek
Apr 11 '18 at 7:38













I tried toggling "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath" but still no respond for toggle comment.

– user1342124
Apr 11 '18 at 9:38





I tried toggling "extensions update", "extensions.ignoreRecommendations" and "emmet.extensionsPath" but still no respond for toggle comment.

– user1342124
Apr 11 '18 at 9:38












2 Answers
2






active

oldest

votes


















0














For me, in VSCode has a error with ctrl + } and ctrl + shift + } 'cause is inversly and no show correctly the keys to hit.



You must redirect to Keyboard Shortcuts - Visual Studio Code, and search the shortcut "Comment", and hit:



blockComment: Insert ctrl + } when you hit ctrl + shift + }.



commentLine: Insert ctrl + shift + } when you hit ctrl + }.



The Shortcuts show like this



I hope that help for you.






share|improve this answer































    0














    In my case it was due to the fact that VS Code 'didn't know' the language the file was written in. I was editing a .cmake file and VS Code does not 'understand' CMake syntax when installed out-of-the-box.



    Installing a 'CMake' extension enabling CMake syntax highlight also enabled the 'Toggle Line Comment' [Ctrl+/] shortcut to work.



    (I'm guessing without the specified language VS Code simply does not know which symbol to use to comment out the lines - e.g. '//' or '#' or else).






    share|improve this answer

























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49768101%2fubuntu-visual-studio-code-toggle-comment-no-respond%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      For me, in VSCode has a error with ctrl + } and ctrl + shift + } 'cause is inversly and no show correctly the keys to hit.



      You must redirect to Keyboard Shortcuts - Visual Studio Code, and search the shortcut "Comment", and hit:



      blockComment: Insert ctrl + } when you hit ctrl + shift + }.



      commentLine: Insert ctrl + shift + } when you hit ctrl + }.



      The Shortcuts show like this



      I hope that help for you.






      share|improve this answer




























        0














        For me, in VSCode has a error with ctrl + } and ctrl + shift + } 'cause is inversly and no show correctly the keys to hit.



        You must redirect to Keyboard Shortcuts - Visual Studio Code, and search the shortcut "Comment", and hit:



        blockComment: Insert ctrl + } when you hit ctrl + shift + }.



        commentLine: Insert ctrl + shift + } when you hit ctrl + }.



        The Shortcuts show like this



        I hope that help for you.






        share|improve this answer


























          0












          0








          0







          For me, in VSCode has a error with ctrl + } and ctrl + shift + } 'cause is inversly and no show correctly the keys to hit.



          You must redirect to Keyboard Shortcuts - Visual Studio Code, and search the shortcut "Comment", and hit:



          blockComment: Insert ctrl + } when you hit ctrl + shift + }.



          commentLine: Insert ctrl + shift + } when you hit ctrl + }.



          The Shortcuts show like this



          I hope that help for you.






          share|improve this answer













          For me, in VSCode has a error with ctrl + } and ctrl + shift + } 'cause is inversly and no show correctly the keys to hit.



          You must redirect to Keyboard Shortcuts - Visual Studio Code, and search the shortcut "Comment", and hit:



          blockComment: Insert ctrl + } when you hit ctrl + shift + }.



          commentLine: Insert ctrl + shift + } when you hit ctrl + }.



          The Shortcuts show like this



          I hope that help for you.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 6 '18 at 20:02









          J. AguillonJ. Aguillon

          113




          113

























              0














              In my case it was due to the fact that VS Code 'didn't know' the language the file was written in. I was editing a .cmake file and VS Code does not 'understand' CMake syntax when installed out-of-the-box.



              Installing a 'CMake' extension enabling CMake syntax highlight also enabled the 'Toggle Line Comment' [Ctrl+/] shortcut to work.



              (I'm guessing without the specified language VS Code simply does not know which symbol to use to comment out the lines - e.g. '//' or '#' or else).






              share|improve this answer






























                0














                In my case it was due to the fact that VS Code 'didn't know' the language the file was written in. I was editing a .cmake file and VS Code does not 'understand' CMake syntax when installed out-of-the-box.



                Installing a 'CMake' extension enabling CMake syntax highlight also enabled the 'Toggle Line Comment' [Ctrl+/] shortcut to work.



                (I'm guessing without the specified language VS Code simply does not know which symbol to use to comment out the lines - e.g. '//' or '#' or else).






                share|improve this answer




























                  0












                  0








                  0







                  In my case it was due to the fact that VS Code 'didn't know' the language the file was written in. I was editing a .cmake file and VS Code does not 'understand' CMake syntax when installed out-of-the-box.



                  Installing a 'CMake' extension enabling CMake syntax highlight also enabled the 'Toggle Line Comment' [Ctrl+/] shortcut to work.



                  (I'm guessing without the specified language VS Code simply does not know which symbol to use to comment out the lines - e.g. '//' or '#' or else).






                  share|improve this answer















                  In my case it was due to the fact that VS Code 'didn't know' the language the file was written in. I was editing a .cmake file and VS Code does not 'understand' CMake syntax when installed out-of-the-box.



                  Installing a 'CMake' extension enabling CMake syntax highlight also enabled the 'Toggle Line Comment' [Ctrl+/] shortcut to work.



                  (I'm guessing without the specified language VS Code simply does not know which symbol to use to comment out the lines - e.g. '//' or '#' or else).







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 16 '18 at 0:06









                  Stephen Rauch

                  30.1k153758




                  30.1k153758










                  answered Nov 15 '18 at 23:35









                  MaximMaxim

                  11




                  11






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49768101%2fubuntu-visual-studio-code-toggle-comment-no-respond%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Florida Star v. B. J. F.

                      Danny Elfman

                      Lugert, Oklahoma