Skip to content

Instantly share code, notes, and snippets.

@kaanra
Last active January 3, 2018 22:31
Show Gist options
  • Save kaanra/9046880 to your computer and use it in GitHub Desktop.
Save kaanra/9046880 to your computer and use it in GitHub Desktop.
[Fix SASS file icons with Sublime set as default App (Mac)] #sublime

How to fix SASS file icon associations with Sublime (Mac)

  1. Open /Applications/Sublime Text 2.app/Contents/Info.plist

  2. Add to the top of the array:

    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleTypeName</key>
        <string>SASS</string>
        <key>CFBundleTypeExtensions</key>
        <array>
          <string>sass</string>
          <string>scss</string>
        </array>
        <key>CFBundleTypeIconFile</key>
        <string>CSS</string>
    </dict>
    
  3. Move the Sublime Text 2 application out of the Applications folder (i.e the desktop). Then move it back to the Applications folder.

  4. Relaunch Finder (ALT + Right Click finder icon)

  5. (ノ´ヮ´)ノ*:・゚✧ Enjoy correct file icons for SASS and Sublime.

Source:

See: http://superuser.com/questions/382760/sublime-text-2-editing-associated-filetypes-in-plist-info-wont-work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment