There is a rectangle area in the right sidebar, showing the current code block you are in in the context of the whole file, however it is kind of difficult to see, anyone know how to make the color more obvious?
相关问题
- How to run code in Sublime text 2 python
- How do you configure MinGW with Sublime Text 3?
- How to add custom HTML tags in Sublime Text 3
- Not able to run selected lines in REPL R in sublim
- Mac OS X /bin/bash: python: command not found in s
相关文章
- trouble getting sublime to execute with linux term
- NVM cannot load default node with default alias se
- Automatically select pasted text in Sublime Text 3
-
Perl with Sublime Text 2:
not working - How to run python code in Sublime Text 3?
- How to make Zen Coding support JavaScript files in
- Show info about current character in status bar in
- Sublime Text 3: how to bind a shortcut to a specif
Yes, it is possible to change the color of the minimap. In addition there are also a couple of settings that you can enable to make the minimap easier to see:
Example user settings (use menu Preferences>Settings, see this answer for more info about sublime user-settings file format):
How to change the color of the minimap?
To change the color of the minimap you should do it in your theme file. The default theme file is called Default.sublime-theme but this file name could be different if you are using a different downloaded theme. You need to change the value of the property viewport_color inside the class minimap_control. In order to do it you have two main options:
Option 1: override the values in a new file. Create a file called Default.sublime-theme in your user folder (you can find your user folder using menu Preferences>Browse-packages and then open the folder called user). Set this content to the file, use another color values if you want, save it with fileName Default.sublime-theme (supposing you are using default theme), and then restart:
Option 2: edit your theme file directly. If you are using Linux and the default theme you usually can found Default.sublime-theme inside /opt/sublime_text/Packages/Theme - Default.sublime-package. If you are using windows and the default theme you usually can find Default.sublime-theme inside C:/Program Files/Sublime Text 3/Packages/Theme - Default.sublime-package.
Example results:
Default Minimap:
Default minimap with option draw_minimap_border set to true.
Minimap with custom color ([68, 200, 240, 96]) and border
Edit: extra explanation about the meaning of
"settings": ["!always_show_minimap_viewport"]
in the previous file. It means that the config group is only used if the sublime settingalways_show_minimap_viewport
value is set tofalse
. On the other hand"settings": ["always_show_minimap_viewport"]
means that the config group is only used if the sublime settingalways_show_minimap_viewport
is set totrue
.More in detail, the first config group just sets the minimap color and makes opacity=1, so, it makes the minimap always visible, and this is only used when
always_show_minimap_viewport
is set to `true.The last two config groups are only used when
always_show_minimap_viewport
is set tofalse
. The second config-group sets the color and sets opacity value to 0.0, so it makes the minimap non visible. BUT, the third group causes the opacity value to be 1 when you hover the minimap (see the attribute in the config group), so it makes the minimap visible when you hover the mouse over it. And this happens ifalways_show_minimap_viewport
is set tofalse
.