npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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

15

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.

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:

| 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

Enjoy!