Skip to content

Instantly share code, notes, and snippets.

@igaozp
Last active December 2, 2020 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igaozp/b4cf42daff7ff395b0cbf4e9d02b32e7 to your computer and use it in GitHub Desktop.
Save igaozp/b4cf42daff7ff395b0cbf4e9d02b32e7 to your computer and use it in GitHub Desktop.

Visual Studio Code support for MacType

There are two ways for tweaking VS Code to work with MacType, both have their pros and cons.

By changing code

Works on 1.0.0, from all CLI, shortcut and original exe. Other versions might work too but it's not suggested to try as it would break the editor.

You can do this by replacing file <VS Code Location>\resources\app\out\vs\workbench\electron-main\main.js by this one

where <VS Code Location> is the folder, where VS Code is installed.

Then kill all of your VS Code processes if it's opened and start editor again.


By adding flag --disable-direct-write to shortcut

Works on any VS Code version, only if opened from shortcut.

You'll most likely find the shortcut in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio Code

Then modify shortcut properties so there is --disable-direct-write at the end:

properties


Fix Blurry fonts on HiDPI

Append another argument: --force-device-scale-factor=1.

Also append config entry to "User Settings" (config.json) of VS Code: "window.zoomLevel": 1.5, You can modify 1.5 to the value of your desktop zoom scale.

properties config.js

@koyokr
Copy link

koyokr commented Dec 2, 2020

I put this in the ini file.

[General@Code.exe]
DirectWrite=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment