Skip to content

Instantly share code, notes, and snippets.

@juanfernandes
Last active July 27, 2023 14:40
Show Gist options
  • Save juanfernandes/ba413678c7686f0c96b0 to your computer and use it in GitHub Desktop.
Save juanfernandes/ba413678c7686f0c96b0 to your computer and use it in GitHub Desktop.
Sublime Text Setup

Sublime Text setup files

Install Package Control

  1. Open the command palette
  2. Win/Linux: ctrl+shift+p, Mac: cmd+shift+p
  3. Type Install Package Control, press enter

Install Plugins

Setup theme

  • Install Theme - Materialize
  • Install SetiUI
  • Add User Preferences + Keymap Preferences

Hide Mini Map

Save minimap_setting.py in the User directory (in Preferences -> Browse Packages).

Sidebar

Add to your sidebar configuration: Settings > Package Settings > Side Bar > User - Settings

{
"added_words":
[
"specialises",
"specialise",
"Woodbridge",
"skype",
"spam",
"blog"
],
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_indent": true,
"binary_file_patterns":
[
"*.dds",
"*.eot",
"*.gif",
"*.ico",
"*.jar",
"*.jpeg",
"*.jpg",
"*.pdf",
"*.png",
"*.swf",
"*.tga",
"*.ttf",
"*.zip"
],
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Materialize/schemes/Material Seti.tmTheme",
"copy_with_empty_selection": false,
"detect_slow_plugins": false,
"dictionary": "Packages/Language - English/en_UK.dic",
"drag_text": false,
"draw_minimap_border": false,
"show_minimap": false,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"file_exclude_patterns":
[
"*.sublime-project",
"*.sublime-workspace",
".DS_Store"
],
"folder_exclude_patterns":
[
".git",
"tmp",
"node_modules",
".sass-cache",
"dist/**",
"project-hub/**"
],
"font_face": "inconsolata-dz",
"font_options":
[
"subpixel_antialias"
],
"font_size": 15,
"gutter": true,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"indent_subsequent_lines": true,
"line_padding_bottom": 2,
"line_padding_top": 2,
"match_brackets": true,
"match_brackets_angle": true,
"match_brackets_braces": true,
"match_brackets_content": true,
"match_brackets_square": true,
"match_selection": true,
"match_tags": true,
"preview_on_click": true,
"rulers":
[
72,
80
],
"save_on_focus_lost": true,
"scroll_past_end": true,
"scroll_speed": 2,
"spell_check": true,
"tab_completion": true,
"tab_size": 2,
"theme": "Material Seti.sublime-theme",
"todo":
{
"case_sensitive": true,
"file_exclude_patterns":
[
"*.sql"
],
"folder_exclude_patterns":
[
"node_modules"
],
"patterns":
{
"CHANGED": "CHANGED[\\s]*?:+(?P<changed>\\S.*)$",
"FIXME": "FIX ?ME[\\s]*?:+(?P<fixme>\\S.*)$",
"NOTE": "NOTE[\\s]*?:+(?P<note>.*)$",
"TODO": "TODO[\\s]*?:+(?P<todo>.*)$"
}
},
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"word_separators": "./\\()\"':,.;<>~!@#%^&*|+=[]{}`~?",
"word_wrap": true
}
[
{
"keys": [ "ctrl+shift+t" ],
"command": "todo_review",
"args": { "paths": [], "open_files": true }
},
// { "keys": ["ctrl+shift+t"], "command": "reopen_last_file" },
]
[
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" }
]
# -*- encoding: utf-8 -*-
import sublime
import sublime_plugin
class MinimapSetting(sublime_plugin.EventListener):
def on_activated(self, view):
show_minimap = view.settings().get('show_minimap')
if show_minimap:
view.window().set_minimap_visible(True)
elif show_minimap is not None:
view.window().set_minimap_visible(False)
{
"i_donated_to_sidebar_enhancements_developer": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DD4SL2AHYJGBW"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment