Pew Pew Laser Blog

Code. Glass art. Games. Baking. Cats. From Seattle, Washington and various sundry satellite locations.

Pew Pew Laser Blog Archives — by Blog ID

Sublime Text Preferences.


Getting the perfect configuration set up is part of what makes Sublime Text a dream. Here are some of the most useful configuration changes (from Sublime's defaults) that I've found. You can set these by editing the preferences file at Preferences > Settings - User.

"afn_insert_dimensions": "false"
With the AutoFileName package, don't automatically insert image dimensions.
"bold_folder_labels": true
In sidebar, show all folders with bold font.
"caret_style": "phase"
A smoother cursor blink transition.
"close_windows_when_empty": false
Don't close Sublime Text when there are no open files.
"copy_with_empty_selection": false
Don't copy if nothing is selected.
"ensure_newline_at_eof_on_save": true
Be sure all saved files end in an empty line.
"fallback_encoding": "UTF-8"
Use this encoding when it can't be determined automatically.
"file_exclude_patterns": [".bak", ".DS_Store", "Thumbs.db"]
Don't show these files in the sidebar or GoToAnything.
"find_selected_text": true
"Find" field is pre-seeded with highlighted text in document. Keeping this in user preferences ensures it works on OSX.
"folder_exclude_patterns": [".git", ".sass-cache", "tmp"]
Don't show these folders in sidebar or GoToAnything.
"font_options": ["subpixel_antialias"]
Prettier text.
"highlight_line": true
Use a lighter background color for line where cursor is.
"highlight_modified_tabs": true
Use special color for tabs with unsaved changes.
"line_padding_bottom": 1
Add just a little white space below lines.
"line_padding_top": 1
Add just a little white space above lines.
"open_files_in_new_window": false
Whether OSX opens dragged-in files in a new Sublime window.
"show_full_path": true
Whether title bar shows entire file path instead of just name. Keeping this in user prefs ensures it works on OSX.
"tab_size": 2
How many spaces is a tab equal to?
"translate_tabs_to_spaces": true
Use spaces instead of tabs.
"trim_automatic_white_space": true
Removes any auto-indented whitespace when on new lines.
"trim_trailing_white_space_on_save": true
When a file is saved, delete any whitespace at the end of a line.
"wide_caret": true
Have a wider cursor marker for better visibility.
"word_separators": "./\\()\"':,.;<>~!@#$%^&*|+=[]{}~?"
Make it so that dashes et cetera are considered part of a word; and thus don't break a selection with a class name, for example.
"word_wrap": "false"
Set word wrap to by default for all file types / syntaxes. Can still enable / disable word wrap via View menu. I don't know why this "false" has to be a string, but it does.


Tags: sublime-text tooling

Authorized users may log-in to leave a comment.

Last Blog: Reflections.

Next Blog: Makerhaus Laser Cutter Notes.