nortakales / vs-code-qalc

Interactive scratchpad calculator for VS Code
MIT License
70 stars 2 forks source link

[Feature] Toggle Line Comment #15

Closed danilort closed 2 years ago

danilort commented 2 years ago

I suggest adding the support to the VSCODE command for toggling comments ("Editor.action.commentLine"), which adds or removes line comments, pressing the appropriate key. https://code.visualstudio.com/api/language-extensions/language-configuration-guide#comment-toggling

What to change

create language-configuration.json

{
    "comments": {
        // symbol used for single line comment. Remove this entry if your language does not support line comments
        "lineComment": "//",
    }
}

modify package.json

"languages": [
    {
        "id": "qalc",
        "aliases": [
            "Qalc"
        ],
        "extensions": [
            ".qalc"
        ],
        "configuration": "./language-configuration.json"
    }
],
nortakales commented 2 years ago

Added in Qalc 0.1.9