Open in PHPStorm
A VS Code extension that allows you to quickly open the current file in PHPStorm with a hotkey.
Features
- Press
Cmd+Shift+O (macOS) to open the active file in PHPStorm
- Works with any file currently open in VS Code
- Automatically detects PHPStorm installation
Installation
- Clone or download this extension
- Open the folder in VS Code
- Run
npm install to install dependencies
- Press
F5 to launch a new Extension Development Host window
- Test the extension in the new window
Usage
- Open any file in VS Code
- Press
Cmd+Shift+O (or Ctrl+Shift+O on Windows/Linux)
- The file will open in PHPStorm
Requirements
- PHPStorm must be installed
- On macOS: PHPStorm command-line launcher should be configured (Tools → Create Command-Line Launcher)
- On Linux/Windows: Ensure PHPStorm is in your PATH or configure the launcher through Tools menu
Keybinding
Default keybinding: Cmd+Shift+O (macOS) / Ctrl+Shift+O (Windows/Linux)
You can customize this in VS Code settings: File → Preferences → Keyboard Shortcuts, then search for "Open in PHPStorm"
Extension Settings
This extension contributes the following settings:
openInPhpStorm.openFile: Command to open the current file in PHPStorm
Development
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch
# Package extension
vsce package
License
MIT
| |