Ubuntu Visual Studio Code Toggle Comment no respond
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
add a comment |
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
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
add a comment |
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
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
visual-studio-code ubuntu-16.04
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
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).
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered May 6 '18 at 20:02
J. AguillonJ. Aguillon
113
113
add a comment |
add a comment |
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).
add a comment |
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).
add a comment |
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).
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).
edited Nov 16 '18 at 0:06
Stephen Rauch
30.1k153758
30.1k153758
answered Nov 15 '18 at 23:35
MaximMaxim
11
11
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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