Automatically add copyright banner in VS Code

There is an extension for this called File Header Comment. Installation Open Command Palette by pressing F1, find the option Extensions: Install Extensions and look for File Header Comment extension. Configuration By default you don’t have to set anything. It will detect most programming language for appropriate comment syntax. But if you want, you can … Read more

Can’t Find certain extensions in CODE-OSS(Open source variant of Visual Studio Code)

This can be fixed by adding following to product.json: “extensionsGallery”: { “serviceUrl”: “https://marketplace.visualstudio.com/_apis/public/gallery”, “cacheUrl”: “https://vscode.blob.core.windows.net/gallery/index”, “itemUrl”: “https://marketplace.visualstudio.com/items” } This can also be fixed by copying product.json from an official build (in the .zip archvie, product.json is under /usr/share/code/resources/app/product.json which contains above lines). Depending on your distribution, exact location may vary. More information: https://github.com/Microsoft/vscode/issues/1557

List of all available commands in VSCode

I believe that content of “Preferences: Default Keyboard Shortcuts (JSON)” (command ID workbench.action.openDefaultKeybindingsFile) really shows comprehensive list of all native and extensions-contributed commands VSC knows about at moment when invoked. This file shows keys from VSC’s defaults and extension manifests. Commands with no suggested defaults are those commented out at the end of file. Their … Read more

Customizing syntax highlighting in Visual Studio Code

There are two concepts at play here: language grammars, which turn a text file into tokens with different scopes, and themes, which colorize those scopes in a (hopefully) eye-pleasing way. If you’re writing your own grammar, or converting from TextMate etc., there’s a chance you’re using different scopes than the ones defined by the theme. … Read more