Skip to content

Orange-C/launch-code-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

launch-code-editor

Open file with line numbers in editor from Node.js.

This package is forked from launch-editor

support launching specified editor in process.

Why

Changed too much and deviated from the original design of launch-editor. So created this package to work out cases when you need to launch specified editor in process

Usage

const launch = require('launch-editor')

launch(
  // filename:line:column
  // both line and column are optional
  'foo.js:12:34',
  // try specific editor bin first (optional)
  'code',
  // callback if failed to launch (optional)
  (fileName, errorMsg) => {
    // log error if any
  }
)

Supported editors

Value Editor Linux Windows OSX
atom Atom
code Visual Studio Code
code-insiders Visual Studio Code Insiders
sublime Sublime Text
webstorm WebStorm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published