- Install VSCodium
- Drop a
product.json
into~/Library/Application Support/VSCodium
with the following content[1]:
{
"extensionsGallery": {
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
"itemUrl": "https://marketplace.visualstudio.com/items",
"controlUrl": "",
"recommendationsUrl": ""
}
}
- Install SwiftDefaultApps
- Open the Swift Default Apps prefpane
- In the textbox at the bottom, enter
vscode
and clickAdd
- Find
vscode
in the list - Click
Other...
- Select
VSCodium.app
- Run the following command:
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add \
"{
LSHandlerPreferredVersions =
{
LSHandlerRoleAll = '-';
};
LSHandlerRoleAll = 'com.visualstudio.code.oss';
LSHandlerURLScheme = 'vscode';
}"
Verify the change with:
defaults read com.apple.LaunchServices/com.apple.launchservices.secure | grep -C 1 vscode
The output should contain something like:
LSHandlerRoleAll = "com.visualstudio.code.oss";
LSHandlerURLScheme = vscode;
You can also verify with a browser. Entering (vscode://
) in the URL bar and pressing Enter should open a prompt asking to launch VSCodium.
[1] https://github.com/VSCodium/vscodium/blob/master/DOCS.md#howto-vscode-marketplace