Download the PHP package mortenscheel/editor-links without Composer
On this page you can find all versions of the php package mortenscheel/editor-links. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mortenscheel/editor-links
More information about mortenscheel/editor-links
Files in mortenscheel/editor-links
Package editor-links
Short Description A skeleton repository for my packages
License MIT
Informations about the package editor-links
EditorLinks
A lightweight PHP package that generates clickable links to open files directly in your preferred code editor.
Installation
You can install the package via composer:
Usage
Supported Editors
EditorLinks supports the following editors out of the box:
phpstorm
(default)sublime
textmate
emacs
macvim
idea
vscode
vscode-insiders
vscode-remote
vscode-insiders-remote
vscodium
nova
xdebug
atom
espresso
netbeans
Configuration
Setting the editor
By default, EditorLinks uses PhpStorm as the target editor. You can change this by setting the EDITOR_LINK_EDITOR
environment variable:
Using a custom link format
Alternatively you can provide a custom link format with %file
and %line
placeholders:
Path Mapping
If you're working in an environment where file paths need to be transformed (like Docker or WSL), you can set up path mapping using the EDITOR_LINK_MAPPING
environment variable:
This will replace /var/www/html
with /Users/username/Projects
in file paths.
Examples
HTML link to error location
Terminal link in console commands
Contributing
Contributions are welcome! If you'd like to add support for another editor or improve the package, please feel free to submit a pull request.
License
The MIT License (MIT). Please see License File for more information.
Credits
- Morten Scheel
- All Contributors