Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To find the name of your editor use this.
- ```
- osascript -e 'id of app "Visual Studio Code"'
- ```
- To set all text files and similar files to vscode instead of xcode use this.
- brew install duti
- ```
- duti -s com.microsoft.VSCode public.json all
- duti -s com.microsoft.VSCode public.plain-text all
- duti -s com.microsoft.VSCode public.python-script all
- duti -s com.microsoft.VSCode public.shell-script all
- duti -s com.microsoft.VSCode public.source-code all
- duti -s com.microsoft.VSCode public.text all
- duti -s com.microsoft.VSCode public.unix-executable all
- duti -s com.microsoft.VSCode .c all
- duti -s com.microsoft.VSCode .cpp all
- duti -s com.microsoft.VSCode .cs all
- duti -s com.microsoft.VSCode .css all
- duti -s com.microsoft.VSCode .go all
- duti -s com.microsoft.VSCode .java all
- duti -s com.microsoft.VSCode .js all
- duti -s com.microsoft.VSCode .sass all
- duti -s com.microsoft.VSCode .scss all
- duti -s com.microsoft.VSCode .less all
- duti -s com.microsoft.VSCode .vue all
- duti -s com.microsoft.VSCode .cfg all
- duti -s com.microsoft.VSCode .json all
- duti -s com.microsoft.VSCode .jsx all
- duti -s com.microsoft.VSCode .log all
- duti -s com.microsoft.VSCode .lua all
- duti -s com.microsoft.VSCode .md all
- duti -s com.microsoft.VSCode .php all
- duti -s com.microsoft.VSCode .pl all
- duti -s com.microsoft.VSCode .py all
- duti -s com.microsoft.VSCode .rb all
- duti -s com.microsoft.VSCode .ts all
- duti -s com.microsoft.VSCode .tsx all
- duti -s com.microsoft.VSCode .txt all
- duti -s com.microsoft.VSCode .conf all
- duti -s com.microsoft.VSCode .yaml all
- duti -s com.microsoft.VSCode .yml all
- duti -s com.microsoft.VSCode .toml all
- ```
Advertisement
Add Comment
Please, Sign In to add comment