Guest User

Untitled

a guest
Feb 14th, 2024
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. To find the name of your editor use this.
  2.  
  3. ```
  4. osascript -e 'id of app "Visual Studio Code"'
  5. ```
  6.  
  7.  
  8. To set all text files and similar files to vscode instead of xcode use this.
  9.  
  10. brew install duti
  11.  
  12. ```
  13. duti -s com.microsoft.VSCode public.json all
  14. duti -s com.microsoft.VSCode public.plain-text all
  15. duti -s com.microsoft.VSCode public.python-script all
  16. duti -s com.microsoft.VSCode public.shell-script all
  17. duti -s com.microsoft.VSCode public.source-code all
  18. duti -s com.microsoft.VSCode public.text all
  19. duti -s com.microsoft.VSCode public.unix-executable all
  20.  
  21. duti -s com.microsoft.VSCode .c all
  22. duti -s com.microsoft.VSCode .cpp all
  23. duti -s com.microsoft.VSCode .cs all
  24. duti -s com.microsoft.VSCode .css all
  25. duti -s com.microsoft.VSCode .go all
  26. duti -s com.microsoft.VSCode .java all
  27. duti -s com.microsoft.VSCode .js all
  28. duti -s com.microsoft.VSCode .sass all
  29. duti -s com.microsoft.VSCode .scss all
  30. duti -s com.microsoft.VSCode .less all
  31. duti -s com.microsoft.VSCode .vue all
  32. duti -s com.microsoft.VSCode .cfg all
  33. duti -s com.microsoft.VSCode .json all
  34. duti -s com.microsoft.VSCode .jsx all
  35. duti -s com.microsoft.VSCode .log all
  36. duti -s com.microsoft.VSCode .lua all
  37. duti -s com.microsoft.VSCode .md all
  38. duti -s com.microsoft.VSCode .php all
  39. duti -s com.microsoft.VSCode .pl all
  40. duti -s com.microsoft.VSCode .py all
  41. duti -s com.microsoft.VSCode .rb all
  42. duti -s com.microsoft.VSCode .ts all
  43. duti -s com.microsoft.VSCode .tsx all
  44. duti -s com.microsoft.VSCode .txt all
  45. duti -s com.microsoft.VSCode .conf all
  46. duti -s com.microsoft.VSCode .yaml all
  47. duti -s com.microsoft.VSCode .yml all
  48. duti -s com.microsoft.VSCode .toml all
  49. ```
  50.  
Advertisement
Add Comment
Please, Sign In to add comment