Skip to content

robyoder/vscode-handler

 
 

Repository files navigation

Visual Studio Code URL Handler

vs-code:// URL handler for Visual Studio Code on three main platform (Windows, Mac, Ubuntu).

Following string must be specified as an editor in your app:

vs-code://open?url=file://%file&line=%line

Might not be stable right now. If something doesn't work, then feel free to submit an issue on GitHub.

Installing on Windows

Steps:

  1. clone this repository
  2. go to cloned folder
  3. copy folder VS Code Protocol to C:\Program Files\ folder
  4. double click on C:\Program Files\VS Code Protocol\run_editor.reg file
  5. agree to whatever Registry Editor asks you
  6. delete cloned folder

Reference:

TODO:

  • wrap only necessary files into installer

Notice:

  • only test on Windows 10

Installing on Mac

Steps:

  1. clone this repository
  2. go to cloned folder
  3. drag VS Code Handler.app to your /Applications directory
  4. Open once to register the handler
  5. delete cloned folder

Notice:

The app doesn’t open? Don’t panic!

Reference:

Useful Links:

Installing on Linux (Ubntu)

Steps:

  1. clone this repository
  2. run sudo bash install in console
  3. delete cloned folder

Reference:

Useful Links:

Notice:

  • only test on Ubuntu Linux 14.04 Desktop
  • only works with Firefox (Google Chrome doesn't works)

Using with Laravel Tracy

Steps:

  1. Install Laravel Tracy using composer command

    composer require recca0120/laravel-tracy
  2. Include the service provider within config/app.php

    'providers' => [
        //...
        Recca0120\LaravelTracy\ServiceProvider::class,
        //...
    ];
  3. Publish assets using artisan command

    php artisan vendor:publish --provider="Recca0120\LaravelTracy\ServiceProvider"
  4. Setup your config/tracy.php like this

    return [
    	//...
        'editor' => 'vs-code://open?url=file://%file&line=%line',
        //...
    ];

Reference:

About

Maps vscode:// URL schemes to Visual Studio Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • AppleScript 54.6%
  • JavaScript 28.2%
  • Shell 17.2%