question

AdleHarst-3752 avatar image
0 Votes"
AdleHarst-3752 asked Viorel-1 edited

"Toggle comment is not executable."

95558-togglecomment.jpg

Hi all. I'm completely new to programming, please forgive me if this is a very simple issue.
I downloaded a web page template and would like to edit the HTML file with visual studios.
For a few reasons, having a keybind to turn lines of code into comments are desirable.

I tried using 【Ctrl+K, Ctrl+C】but an error would occur, written at the bottom of the window
"The key combination (Ctrl+L, Ctrl+C) is bound to command (Comment Selectio..."
I could not read what was written after the dots, but I had highlighted a few lines of code before pressing the keybind.

I have also tried downloading the extension Toggle Comment, and it says that it supports HTML.
However, when I tried the keybind, the error message shown in the image attached appears.

I found that HTML files are a type of plaintext files.
However, the Toggle Comment extension noted that they support HTML files.
Is there something basic I am misunderstanding here?



vs-general
togglecomment.jpg (23.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Viorel-1 avatar image
0 Votes"
Viorel-1 answered Viorel-1 edited

Probably the file has a different extension. Make sure that the HTML file has the “.htm” or “.html” extension.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.