201. MacOS下的使用记录

常用路径

  • 背景照片/锁屏文件的路径

    • /Users/qeuroal/Library/Application Support/com.apple.mobileAssetDesktop
    • /Library/Application Support/com.apple.idleassetsd/Customer/4KSDR240FPS
  • 登录项中后台文件的路径

    • ~/Library/LaunchAgents
    • /Library/LaunchDaemons
    • /Library/LaunchAgents
  • wps

    • ~/Library/Containers/com.kingsoft.wpsoffice.mac/Data/.kingsoft/office6/templates/wpp/zh_CN/Normal.dotm
    • ~/Library/Containers/com.kingsoft.wpsoffice.mac/Data/.kingsoft/office6/templates/wps/zh_CN/.~Normal.dotm
    • ~/Library/Containers/com.kingsoft.wpsoffice.mac/Data/.kingsoft/office6/templates/wps/zh_CN/Normal.dotm

设置默认程序

  1. 获取 VSCode 的 app ID,打开终端,输入命令:

    1
    osascript -e 'id of app "Visual Studio Code"'

    VSCode ID:com.microsoft.VSCode

  2. 用 brew 来安装 duti ,(如果不知道什么是 brew ,谷歌一下你就知道)

    1
    brew install duti
  3. 输入以下命令,就可以让你的所有文本都以 VSCode 来打开啦~

    1
    2
    duti -s com.microsoft.VSCode public.data all