62

Without using a 3rd-party application, how do I go about changing the icon in the sidebar for the Developer folder?

When I click on "Get Info" for this icon it's showing the icon does have the hammer icon but it's not showing in El Capitan in the sidebar when I add it over there?

Does anyone have a solution or can refer me to an article that will provide me with some direct information on how to add/edit this?

7
  • 2
    I believe they're all generic icons, unfortunately - have a look at /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources, all the sidebar icons are there Commented Jun 12, 2016 at 8:17
  • 1
    @Danijel-JamesW the icon you see is the generic "Finder" folder icon, named DeveloperFolderIcon.icns. However, sidebar icons are named Sidebar*.icns and are monochromatic. I'm not sure if it's possible to add/edit a sidebar icon without affecting all other sidebar icons. Commented Jun 12, 2016 at 12:50
  • 4
    The Dropbox folder has a custom icon in the sidebar? What gives??! dropbox.com/s/xt8u2orepav0p78/… Commented Feb 10, 2018 at 2:58
  • 2
    My google drive folder also has a custom icon, so it has to be possible for third-party developers to customize it. Commented Aug 2, 2020 at 3:52

8 Answers 8

9

I found a SIMBL plugin that changes the icons on the sidebar to custom ones. By removing the icons from the configuration file, it doesn't replace any icons with custom ones, but only allows the icon of the folder itself to be displayed on the sidebar. Keep in mind that this will also change your home folder, All My Files folder and all other folders to display in colour.

Download modified version here

Remember to use mySIMBL for the plugin to fully work: mySIMBL download

Disclaimer: The original plugin is made by W0lfschild and is open source. I do not own this file, I have only provided a version with pre-edited config files. Original version is on GitHub.

5
  • 1
    @hmedia1 If you have another idea for a better solution to this problem, please let me know or edit my post, and I'll be happy to make that change.
    – user220129
    Commented May 7, 2018 at 4:34
  • What do you mean by "Keep in mind that this will also change your home folder", will that rename or change my root user Home folder. Can you clarify that? As far as I know on Mac, changing or renaming your Home folder is dangerous, and could break your user profile? Commented May 11, 2021 at 10:08
  • @StevenMancera The only thing that changes about the home folder is its icon in the Finder sidebar. At this point in time this solution is quite outdated, however, as it requires the SIMBL addon to inject code into the system, for which to happen SIP needs to be disabled. Adding emoji to the folder names would be much more practical, IMO.
    – user220129
    Commented Sep 17, 2021 at 1:46
  • Modified version file host is defunct and the download is not present in archive.org Commented Nov 12, 2021 at 17:43
  • 1. SIMBL is now discontinued and is now succeeded by github.com/MacEnhance/MacForge. 2. Your link to the modified version seem to have expired/deleted.
    – Fr0zenFyr
    Commented Sep 9, 2022 at 11:03
23

I'd love to be able to change the icons without an add-on. You get better visibility and much faster access.

Best thing I've managed to do for easy visibility is to add emoji to the names of the folders.

But of course you likely don't want to add emoji to the folders themselves. Instead you can put an alias to the folder in the sidebar, and have that alias contain the emoji.

I created ~/Library/Sidebar Aliases/ folder and dropped a number of aliases in there (Command-Option drag the folder). Then I renamed those to include whatever emoji icons I want to help visibility, and added those aliases to the sidebar.

Works perfectly:

enter image description here

Bonus: You can make the names themselves more descriptive. I've got a number of network folders in my sidebar and they all have the same name "Photos" for example.

Using an alias, I can have my smb://<server>.local/Collating/Photos/ folder appear in the sidebar as 📸 Collating Photos, without touching the actual folder name itself. 👍

enter image description here

Important Note: The only noticeable downside to this approach is that you can no longer drag and drop files into the sidebar aliases, as you can when there's an actual folder in the sidebar. Not a big issue for me, but worth noting.

2
  • Just like you, I have a "Screenshots" (located inside Pictures folder) folder pinned on my Finder's sidebar for easy, 1 click access. And supposedly, I would love to customize it's folder icon to show the symbol on the "Screenshot" app icon Commented May 11, 2021 at 10:00
  • @StevenMancera Yeah, you used to be able to customize these icons, but years ago the ability got squashed along with what seems to be a steady decline of visual contrast in MacOS. Which is bizarre to me. So many of these flattening changes are objectively a lot less functional and subjectively I think they're aesthetically worse. 🤷‍♂️
    – MrTemple
    Commented May 11, 2021 at 17:04
13

Just create a Developer folder in your user folder and the developer icon will automatically be on the folder, and when we add the folder to sidebar, it will also automatically be an icon. enter image description here

4
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Dec 29, 2021 at 14:55
  • 2
    The creation of ~/Developer folder is indeed enough to make the icon appear automagically.
    – Eir Nym
    Commented Aug 17, 2023 at 10:17
  • Is there a list of other reserved names that get special icons like this?
    – Merchako
    Commented Nov 10, 2023 at 18:10
  • 2
    @Merchako maybe this can help you apple.stackexchange.com/a/272955/347265
    – Hrvoje
    Commented Nov 11, 2023 at 23:17
6

There is at least one officially supported, modern way to change the sidebar icon for a folder.

If you enable a Finder Sync Extension and set it's directoryURLs to contain that folder, the app's custom sidebar icon should be used instead of the default icon.

This is the method Dropbox, Google Drive, etc. use to change the Finder sidebar icons for their syncing folder.

This does not work for changing the icons of certain folders, such as the root of your System directory or your home folder. But these locations often already have their own custom sidebar icons already.

Finder Sync Extensions

You can also use the extension point’s API to add a sidebar icon for the monitored folder.

enter image description here

You will only be able to have one custom icon per Finder Extension app, so if you were to use this method to customize several folders you would need to use multiple Finder Sync Extensions. A single app won't be able to arbitrarily customize multiple folders.

1
  • 1
    So this will mean, you have to develop your own little Finder Extension Applet, make it run on the background, so that your Folder will have an icon on Finder's Sidebar, to trick Finder that this folder is a Cloud Storage. I don't know if this is worth the effort or not?? I am no developer, I am just a designer. Commented May 11, 2021 at 9:56
5

In XtraFinder Preferences, check "Show colorful icons in the sidebar". A side effect is that this will make every icon colorful, maybe you like it.

3
  • 6
    I don't think we should just down-vote him because it's not an appropriate answer. It's easier to provide more supporting comments to his answer. Also, it damages your reputation on here too guys. Please play nice to new members. :) Commented Mar 7, 2019 at 4:35
  • Sorry, I didn’t see the requirement of not using third-party app. That’s my fault.
    – Di Liu
    Commented Mar 8, 2019 at 5:41
  • 3
    There is no “down-voting him”, just down-voting this answer, so that it doesn’t appear higher than appropriate answers. Nothing personal going on here. Commented Oct 20, 2019 at 14:43
5

Only items you can activate from Finder > Preferences > Sidebar have custom sidebar icons. If you manually add folders, such as the Developer folder, to your sidebar favorites, they will show up with a generic sidebar icon, even if the folder has a custom Finder icon.

The only way to change this would be with hacks as described by e.g. Keyboard_Gamer's answer.

For more clarity, a 3rd-party app can add a finder extension to get a custom icon. This is why dropbox, google drive, onedrive and other folders might have custom icons.

5
  • 8
    Dropbox is not listed there and has a custom icon
    – ohcibi
    Commented Oct 27, 2018 at 14:40
  • 2
    @ohcibi that is probably because Dropbox is installing a Finder extension which makes this possible. Commented Nov 13, 2018 at 21:40
  • 1
    Unfortunately this is simply false. My Google Drive folder also has a custom icon. Commented Aug 7, 2020 at 20:45
  • 1
    Google Drive may also use a Finder extension.
    – Sam Weaver
    Commented Apr 30, 2021 at 15:13
  • Dropbox and Google drive DO use finder extensions. Commented Feb 6, 2023 at 15:12
0

Something I discovered by accident today on macOS Sonoma 14.7

Similar to what Hrvoje mentioned in their answer: Name the folder in a way to match one of the automagic apple icons and add it to your sidebar.

But you can then symlink/alias your folder with a custom name and that seems to make it magically show under the different name.

From Terminal

ln -s ~/Developer ~/your-custom-name and have it then appear in the sidebar

From the finder window

  1. Select the folder
  2. Do one of the following:
    • Right click and choose Make Alias
    • In the Menu Bar choose File > Make Alias
    • Use the keyboard shortcut Ctrl ^ + Command ⌘ + A
  3. Type your custom name

Finder window showing sidebar with projects folder with developer folder icon

-1

Finder with changed network icon

I am using OS Catalina.10.15.7 on a MacBook Pro (13-inch, Mid 2012) I change my sidebar icons as follows (This is an example changing the Network icon) :

  1. Create various size .png files using my original icon's .png file by opening it in preview and using Tool/Adjust size. I created 8x8,16x16,32x32,64x64 and 8x8@2x,16x16@2x,32x32@2x,64x64@2x. They MUST all be in the format icon_8x8.png or [email protected] etc. The @2x files are copies of those next largest. eg. duplicate the 16x16 file and change it to [email protected] create a folder for them :

resulting folder

rename the whole folder SidebarNetwork.iconset and put if somewhere like on the desktop.

  1. In Terminal navigate to the desktop then use sudo iconutil -c icns SidebarNetwork.iconset to convert the folder to an .icns file and it will appear on the desktop nearby.

The remainder is at your own risk. Disabling SIP is a risk and changing System folders/files as well.

  1. Disable SIP in terminal from recovery mode https://developer.apple.com/documentation/security/disabling-and-enabling-system-integrity-protection and reboot. Then in terminal use sudo mount -uw /to allow for change of permissions

  2. Navigate to /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources . Scroll down and you will see the Sidebar .icns files. Make a copy of the one you want to change in case you want to revert to the original and put it somewhere safe!!!

  3. Using 'get info' for SidebarNetwork.icns , unlock and add your own, logged in admin user allowing Read and Write permission.

  4. In Terminal use sudo cp /Users/you/Desktop/SidebarNetwork.icns /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/SidebarNetwork.icns to replace the .icns file with your own. Remember to change 'you' to your own user folder name.

  5. use all of these to clear caches and refresh everything :

    sudo rm -rf /Library/Caches/com.apple.iconservices.store
    sudo rm -rf /System/Library/Caches/com.apple.iconservices.store
    sudo rm -rf /private/var/folders/*/*/*/com.apple.dock.iconcache
    

    and killall Dock; killall Finder

  6. Reboot into Recovery, enable SIP in terminal again,reboot and (at least in my case) wait a while for the network icon to re-appear and be changed. Mine took 5-10 mins (no idea why)

  7. All the other Sidebar icons are in the same folder and I have changed them using this method on both OS High Sierra and OS Catalina.

3
  • If you find yourself posting the same answer to several questions, please flag the questions for mod attention or propose to close some as duplicates.
    – nohillside
    Commented Nov 14 at 8:38
  • Apologies, I see my mistake now. Thanks.
    – Jayme
    Commented Nov 14 at 9:44
  • No problem at all.
    – nohillside
    Commented Nov 14 at 11:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .