Skip to content

VSCode

Open files in new tab: "workbench.editor.enablePreview": false

Remove right hand side preview, this is called the minimap: "editor.minimap.enabled": false in your user or workspace settings.

If remote host is NixOS

For people just trying to get this working, the following works for me:

- On the NixOS server, `rm -rf ~/.vscode-server` and ensure nodejs-10_x is installed (and no other nodejs version)
- Try to initiate a remote session to the server from VSCode
- After that fails, cd to `~/.vscode-server/bin/*` on the server, and run `rm node; ln -s $(which node)`
- Try to initiate a remote session again - should work this time

Extra Syntax Highlighting

"files.associations" = {
        "*.hujson" = "jsonc";
    };

    "json.schemas" = [{
        "fileMatch" = ["*.hujson"];
        "schema" = {
            "allowTrailingCommas" = true;
        };
    }]
"files.associations": {
    "*.hujson": "jsonc"
},
"json.schemas": [{
    "fileMatch": ["*.hujson"],
    "schema": {
        "allowTrailingCommas": true
    }
}]