open-in-editor-vscode
v1.0.0
Published
Open a file in Visual Studio, Atom Editor, Emacs, IntelliJ IDEA Community Edition, Sublime Text, PhpStorm, Vim, WebStorm or any other external editor from VS Code.
Downloads
14
Readme
Open in Editor extension for Visual Studio Code
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.
Features
- Editor context menu
- File Explorer context menu
- Put a cursor in the same position.
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.
Keyboard Shortcut
You can also use Alt+Shift+E
to open the file in the alternative editor.
Extension Settings
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 |
Advanced settings
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.
Custom editors with key bindings
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"
}]
Examples:
Visual Studio
Use the Visual Studio IDE as an alternative editor.
"alt-editor.name": "visualstudio"
Vim
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.
For more information
- Powered by open-in-editor
Enjoy!