spgennard / vscode_cobol

Visual Studio Code Extension for COBOL, JCL and MF Directive Files
MIT License
37 stars 16 forks source link

Usability Question: can I turn off the vertical clues to column 7? #326

Closed arnieHouston closed 1 year ago

arnieHouston commented 1 year ago

First Off: I love this plug-in! Its great!

But I'm using free format COBOL instead of fixed, is there any way to turn off the vertical clues for column 7, etc?

spgennard commented 1 year ago

This is provided by vscode and I customise it on per-language basis.

The specific settings is "editor.rulers", so if you don't want any rules, in your settings you can use:

    "[COBOL]": {
        "editor.rulers": [
        ]
    }

The default is:

"editor.rulers": [
            6,
            7,
            11,
            72
        ]

Lastly, if you want to change the behaviour of the tab key, you can either change the tabstops settings:

    "coboleditor.tabstops": [
        0,
        7,
        11,
        15,
        19,
        23,
        27,
        31,
        35,
        39,
        43,
        47,
        51,
        55,
        59,
        63,
        67,
        71,
        75,
        79
    ]

or turn it off and default back to standard vs code tab behaviour with:

"coboleditor.enable_tabstop": true,
arnieHouston commented 1 year ago

Nice. But, ah, where in the UI do add this JSON? I do not see settings for the COBOL extension. Do I put it in settings.json somewhere?

spgennard commented 1 year ago

https://code.visualstudio.com/docs/getstarted/settings#_settingsjson

github-actions[bot] commented 1 year ago

Stale issue message