text 在Mac OSX中向Finder服务添加命令以在VS Code中打开文件夹

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 在Mac OSX中向Finder服务添加命令以在VS Code中打开文件夹相关的知识,希望对你有一定的参考价值。

- Open Automator 
- File -> New -> Service 
- Change "Service Receives" to "files or folders" in "Finder" 
- Add a "Run Shell Script" action 
- Change "Pass input" to "as arguments" 
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" 
- Save it as something like "Open in Visual Studio Code"

(From: https://gist.github.com/tonysneed/f9f09bfa28bcf98e8d8306f9b21f99e2)

以上是关于text 在Mac OSX中向Finder服务添加命令以在VS Code中打开文件夹的主要内容,如果未能解决你的问题,请参考以下文章