summaryrefslogtreecommitdiff
path: root/posts
diff options
context:
space:
mode:
Diffstat (limited to 'posts')
-rw-r--r--posts/vscode.md18
1 files 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!