Currently, when selecting a component in Nuxt DevTools using the selection tool, it automatically opens Visual Studio Code by default. However, many developers use different IDEs, and it's frustrating when VSCode is opened, especially when itβs not the primary editor.
π The solution you'd like
I suggest adding an optional configuration field similar to what Godot offers for external editors: Godot External Editor Configuration. This field would allow developers to specify their preferred editor and how to pass file and cursor position (line, column) to that editor.
The field could default to VSCode but provide customization options for other editors.
Example configuration options:
Editor: The name of the external editor (e.g., Atom, JetBrains IDE, Vim, Emacs, Sublime Text).
Exec Flags: The command-line flags to open the selected component in the correct file and position. Examples:
Atom: {file}:{line}
JetBrains IDE: {project} --line {line} {file}
Vim (gVim): "+call cursor({line}, {col})" {file}
Emacs: emacs +{line}:{col} {file}
Sublime Text: {project} {file}:{line}:{column}
π Alternatives you've considered
Another option would be to simply open the file with the system's default application for .vue files. While this might be more practical in some situations, it can lead to issues if the system default is not properly configured, as it could open in something like Notepad or another undesired application.
βΉοΈ Additional info
This feature could remain optional with a VSCode default, but having flexibility would greatly improve the workflow for developers who do not use VSCode as their primary IDE.
π Your use case
Currently, when selecting a component in Nuxt DevTools using the selection tool, it automatically opens Visual Studio Code by default. However, many developers use different IDEs, and it's frustrating when VSCode is opened, especially when itβs not the primary editor.
π The solution you'd like
I suggest adding an optional configuration field similar to what Godot offers for external editors: Godot External Editor Configuration. This field would allow developers to specify their preferred editor and how to pass file and cursor position (line, column) to that editor.
The field could default to VSCode but provide customization options for other editors.
Example configuration options:
{file}:{line}
{project} --line {line} {file}
"+call cursor({line}, {col})" {file}
emacs +{line}:{col} {file}
{project} {file}:{line}:{column}
π Alternatives you've considered
Another option would be to simply open the file with the system's default application for
.vue
files. While this might be more practical in some situations, it can lead to issues if the system default is not properly configured, as it could open in something like Notepad or another undesired application.βΉοΈ Additional info
This feature could remain optional with a VSCode default, but having flexibility would greatly improve the workflow for developers who do not use VSCode as their primary IDE.