Sometimes, we want to pressing hold
right-click to open file and typing command to opening, so how to do it?
$ code filename
- Launch VS Code.
- Open the Command Palette (
Ctrl+Shift+P) and type ‘shell command’ to find the Shell Command: Install ‘code’ command in PATH command.
- Launch iterm.
- Negative to (
Preferences > Profiles > Advanced > Semantic History) and set editor by default, when you pressing hold and right click to opening specific file.