Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide icons in sidebar

Tags:

I upgraded version 2 > 3 and it now appears to be icons in the sidebar the left of each file/folder (and to the right of corresponding arrow).

I find these icons cluttering, is there anyway to hide them?

like image 299
Fellow Stranger Avatar asked Aug 25 '14 13:08

Fellow Stranger


2 Answers

One way to achieve this is through theming.

If you would like to edit your default theme to remove the folder/file icons, you must install PackageResourceViewer.

Then you can use Sublime's command palette to execute PackageResourceViewer:Open Resource.

Click Theme - Default followed by Default.sublime-theme

Find and edit the section of the theme which handles folder/file icons to match this sample:

{     "class": "icon_file_type",     "content_margin": [0,0] }, {     "class": "icon_folder",     "content_margin": [0,0] }, {     "class": "icon_folder_loading",     "content_margin": [0,0] } 

Source

like image 102
AJ Gregory Avatar answered Oct 02 '22 12:10

AJ Gregory


If you don't want to change your install, you can also customize your theme in your personnal folder.

For example, under Ubuntu, edit or create this file ~/.config/sublime-text-3/Packages/User/Default.sublime-theme, and add following settings into it:

[    {        "class": "icon_file_type",        "content_margin": [0,0]    },    {        "class": "icon_folder",        "content_margin": [0,0]    },    {        "class": "icon_folder_loading",        "content_margin": [0,0]    } ] 

(in every settings file, settings are inside an array)

By default, the Packages directories for Sublime Text 3 are located at:

  • OS X: ~/Library/Application Support/Sublime Text 3/Packages/
  • Windows: %APPDATA%/Roaming/Sublime Text 3/Packages/
  • Linux: ~/.config/sublime-text-3/Packages/
like image 42
Antoine F. Avatar answered Oct 02 '22 14:10

Antoine F.