"Toggle comment is not executable."

Adle Harst 1 Reputation point


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?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,419 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 109.9K Reputation points

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

    0 comments No comments