savoryink / setfont

Set the font of your favorite editors and terminals
MIT License
0 stars 2 forks source link

App: Visual Studio Code #7

Open nvzqz opened 4 years ago

nvzqz commented 4 years ago

App Suggestion

Full name: Visual Studio Code

Argument value: vscode

Website: https://code.visualstudio.com

Versions: undecided

Platforms:

Motivation

Visual Studio Code is one of the most popular cross-platform text editors right now.

Approach

Edit the editor.fontFamily entry in settings.json. It takes a string containing a comma-separated list of values.

Settings File Location

The settings.json file location is based on the operation system. According to the documentation, it is at:

Nasty Characters

Fonts containing whitespace or commas need to be contained in 'single quotes' to avoid parsing issues.

Pre-Existing Font

The list should be checked for whether the font already exists inside. If it does exist, its entry should be moved to the front of the list.