New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

open-in-editor-vscode

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-in-editor-vscode

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.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Open in Editor extension for Visual Studio Code

The extension enables you to open a file in an alternative IDE or editor.

Editor support:

  • Atom Editor
  • Emacs
  • IDEA 14 Community Edition
  • Sublime Text
  • PhpStorm
  • Vim
  • Visual Studio
  • WebStorm

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.

Open in External Editor

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:

NameEditor
atomAtom Editor
emacsEmacs (via Terminal, Mac OS and Linux only)
idea14ceIDEA 14 CE
phpstormPhpStorm
sublimeSublime Text
vimVim (via Terminal, Mac OS and Linux only)
visualstudioVisual Studio
webstormWebStorm

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

Enjoy!

Keywords

open

FAQs

Package last updated on 14 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts