You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: Inspecting a component opens code in vi instead of IDE (vscode) on WSL2 #576
When triggering a "Open in editor" action, the active terminal will open the vi editor, instead of the current IDE (in this case, vscode).
This is happening on:
"Component inspector"
Pages (clicking on "open in editor" next to route)
🛠️ To reproduce
(cannot reproduce in stackblitz)
🌈 Expected behavior
Open component file in the IDE.
ℹ️ Additional context
OS: Windows 11, running WSL2 with Ubuntu 20
IDE: VScode
Activity
urbgimtam commentedon Mar 25, 2024
Figured out how to solve this, putting this here to help whoever may need too:
On your linux terminal, edit the default .bashrc configuration:
code ~/.bashrcIn the end of the file, add the line:
export EDITOR="code";Save the file, close the editor and end the terminal session. Should be working on the next session.