Specify IDE
By default, code-inspector-plugin
scans the applications currently running on the system and automatically opens a running IDE program (automatic recognition is limited to the IDEs supported in the table below), so in most cases, you do not need to manually specify the IDE.
If you want to specify the IDE, you need to add a file named .env.local
in the project root and add: CODE_EDITOR=[IDE Code Name]
.
Taking vscode as an example, its corresponding IDE Code Name
is code
, then add the following content to .env.local
:
# Specify IDE as vscode
CODE_EDITOR=code
IDEs Supported for Automatic Recognition
The IDE that supports automatic recognition and the corresponding IDE Encoding Name are shown in the table below:
IDE | IDE Encoding Name | MacOS | Windows | Linux |
---|---|---|---|---|
Visual Studio Code | code | ✅ | ✅ | ✅ |
Cursor | cursor | ✅ | ✅ | |
Visual Studio Code - Insiders | code-insiders | ✅ | ✅ | ✅ |
VSCodium | codium | ✅ | ✅ | ✅ |
WebStorm | webstorm | ✅ | ✅ | ✅ |
Atom | atom | ✅ | ✅ | ✅ |
HBuilderX | hbuilder | ✅ | ✅ | |
PhpStorm | phpstorm | ✅ | ✅ | ✅ |
Pycharm | pycharm | ✅ | ✅ | ✅ |
IntelliJ IDEA | idea | ✅ | ✅ | ✅ |
Brackets | brackets | ✅ | ✅ | ✅ |
Appcode | appcode | ✅ | ||
Atom Beta | atom-beta | ✅ | ||
Clion | clion | ✅ | ✅ | |
Rider | rider | ✅ | ✅ | ✅ |
Rubymine | rubymine | ✅ | ✅ | ✅ |
Other IDEs
If the IDE you are using is not in the list of supported IDEs for automatic recognition, or if you are using an IDE that is not officially listed but still supported, it may cause recognition failure. You need to add a file named .env.local
in the project root and add: CODE_EDITOR=[IDE executable program path]
, where the IDE executable program path
is referenced as follows.
MAC
Taking VSCodium as an example (the steps are the same for other IDEs), to obtain the IDE executable program path
on a MAC system, follow these steps:
- Open the IDE program VSCodium.
- Open the
Activity Monitor
on MAC, find VSCodium in the process, and double-click it: - After double-clicking, in the
Open Files and Ports
Tab of the window, find the path corresponding to the first txt, which is theIDE executable program path
: - Copy the
IDE executable program path
to the.env.local
file:
# .env.local
CODE_EDITOR=/Applications/VSCodium.app/Contents/MacOS/Electron
Windows
Taking WebStorm as an example (the steps are the same for other IDEs), to obtain the IDE executable program path
on a Windows system, follow these steps:
- Find the shortcut of the IDE (if it doesn't exist, create one), right-click the shortcut, and select【Properties】:
- After opening, in the【Shortcut】Tab, find【Target】under【Target】, remove the double quotes in【Target】, which is the
IDE executable program path
: - Copy the
IDE executable program path
to the.env.local
file:
# .env.local
CODE_EDITOR=D:\webstorm\WebStorm 2023.1.3\bin\webstorm64.exe