From 2c3ea400c5a77fd122aff4d8dc25cd6129c1cb6a Mon Sep 17 00:00:00 2001 From: bt Date: Tue, 12 Dec 2023 14:05:58 -0500 Subject: --- posts/vscode.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/posts/vscode.md b/posts/vscode.md index 28505c7..47d8999 100644 --- a/posts/vscode.md +++ b/posts/vscode.md @@ -13,20 +13,20 @@ Getting things to work seamlessly proved a little more challenging. I found the First we need to disable [unveil](https://man.openbsd.org/unveil.2) for Chromium. This will allow us to access our system files through [vscode.dev](https://vscode.dev) using the "Open folder..." or "Open file..." commands without issue: -``` -chrome --disable-unveil -``` + + chrome --disable-unveil + Everything should work pretty solid right out the box now - except it doesn't. Syntax highlighting does not work without enabling WASM/WebAssembly. Your experience might be different, but I had to include the following when launching Chromium from the terminal: -``` -ENABLE_WASM=1 chrome --enable-wasm -``` + + ENABLE_WASM=1 chrome --enable-wasm + Success! We can avoid typing out these complex commands everytime we want to launch our editor by setting up an `alias` (in my case via `.zshrc`): -``` -alias vscode="ENABLE_WASM=1 chrome --enable-wasm --disable-unveil" -``` + + alias vscode="ENABLE_WASM=1 chrome --enable-wasm --disable-unveil" + That's it! Now I can just pop open VSCode on OpenBSD by simply running `vscode` in my terminal. Hopefully this can help others slowly transition over to OpenBSD - which you should do because it is amazing! -- cgit v1.2.3-54-g00ecf