Open in Editor extension for Visual Studio Code
MIT License
The extension enables you to open a file in an alternative IDE or editor.
Editor support:
You also can use any other editor that is able to open files from command line.
Use the menu in the editor's tab or the explorer or just press F1 and type Open in External Editor
. The selected file will be opened in an existing session of an alternative editor and put a cursor in the same position as it was in VS Code.
You can also use Alt+Shift+E
to open the file in the alternative editor.
This extension contributes the following settings:
alt-editor.name
: a string name of an editor.
Supported names are:
Name | Editor |
---|---|
atom |
Atom Editor |
emacs |
Emacs (via Terminal, Mac OS and Linux only) |
idea14ce |
IDEA 14 CE |
phpstorm |
PhpStorm |
sublime |
Sublime Text |
vim |
Vim (via Terminal, Mac OS and Linux only) |
visualstudio |
Visual Studio |
webstorm |
WebStorm |
Use these setting if the editor currently is not supported or if the editor's path can't be detected automatically.
alt-editor.binary
: a string path to the editor binary
alt-editor.args
: a string of command line arguments which will be passed to the binary
. The args
can contain placeholders to be replaced by actual values. Supported placeholders: {filename}
, {line}
and {column}
alt-editor.terminal
: set this to true
if the editor should be opened in a terminal. Mac OS and Linux are supported.
Use custom Keyboard Shortcuts to open the current file with different editors.
[{
"key": "shift+alt+v",
"command": "alt-editor.openFile",
"args": { "name": "vim" },
"when": "editorTextFocus"
}, {
"key": "shift+alt+s",
"command": "alt-editor.openFile",
"args": { "name": "sublime" },
"when": "editorTextFocus"
}]
Use the Visual Studio IDE as an alternative editor.
"alt-editor.name": "visualstudio"
Override the default arguments to use a single instance of the Vim editor and open files in tabs.
"alt-editor.name": "vim",
"alt-editor.args": "--servername Code --remote-tab-silent \"+call cursor({line}, {column})\" {filename}"
The Vim should be compiled with +clientserver
flag. Please run the vim --version
and check the output.
Enjoy!