dev-resources.site
for different kinds of informations.
Setting up Svelte-Inspector with VS Code + WSL
Published at
5/10/2023
Categories
Author
Mikhail Karan
Categories
1 categories in total
open
Just ran into some issues while setting up the updated svelte-inspector vite plugin on my SvelteKit app I'm developing on Windows with WSL (Windows Subsystem for Linux). Figured I wouldn't be the only one to have this issue so here is a quick way to solve it!
Guide
Setup Svelte Inspector
For SvelteKit inside your svelte.config.js
file add this:
//in svelte.config.js
const config = {
// ...
vitePlugin: {
inspector: true,
},
}
Add EDITOR config in your settings.json
In your VS Code settings file (settings.json
) add the following:
"terminal.integrated.env.linux": {
"EDITOR": "code"
}
That's it, you should now be able to use the svelte-inspector tool with your WSL VS Code editor!
To use it just start your dev server and open up your project in the browser. Then use the default key combo Ctrl + Shift
References
Articles
12 articles in total
Why Is Everyone Unhappy With JavaScript? | State of Javascript 2024 Survey
read article
Why is TypeScript Better Than JavaScript
read article
Podcast Episodes To Get You Started In Web Development
read article
Do You Need to Learn TypeScript in 2023?
read article
Setting up Svelte-Inspector with VS Code + WSL
currently reading
Coding for No-Coders: JavaScript Editing
read article
Adding Markdown to Framer
read article
You Can Help Junior Developers Succeed
read article
Tech Jargon For Junior Developers
read article
Junior Developers NEED to Hear This!
read article
Full-Stack Development Has Changed In 2023
read article
AI Will Not Take Your Job...Yet
read article
Featured ones: