Skip to content

Instantly share code, notes, and snippets.

@sgnl

sgnl/settings.md Secret

Last active November 11, 2016 02:59
Show Gist options
  • Save sgnl/0b0c5db79b16105c5fb5 to your computer and use it in GitHub Desktop.
Save sgnl/0b0c5db79b16105c5fb5 to your computer and use it in GitHub Desktop.
Sublime User Settings

OSX: Hit cmd + , to open your user settings

Ubuntu: Use the program menu and navitage to preferences > settings - User

add the lines below into your user settings below the ["Vintage"], section.

Note: This file follows the JSON notation. https://google-styleguide.googlecode.com/svn/trunk/jsoncstyleguide.xml

{
  "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
  "font_size": 20,
  "ignored_packages": [
    "Vintage"
  ],
  "translate_tabs_to_spaces": true,
  "tab_size": 2,
  "scroll_past_end": true,
  "indent_guide_options":
	[
		"draw_normal",
		"draw_active"
	],
	"detect_indentation": false,
	"trim_trailing_white_space_on_save": true,
}
  • translate_tabs_to_space will convert tab characters to spaces when you load files or when you tab.

  • tab_size sets indentation to use 2 spaces.

  • scroll_past_end helps us scroll past the end of a document to bring code into view that would normally be stuck at the bottom of the view port. e.g Instead of having the last line of code appear at the bottom of the screen, this adds some "invisible" buffer lines to the bottom of the document.

@sgnl
Copy link
Author

sgnl commented Mar 12, 2016

For OSX users with Retina screens add this setting:

 "font_options": [
    "gray_antialias"
  ],

@sgnl
Copy link
Author

sgnl commented Nov 11, 2016

Ubuntu:

"remember_open_files": false,
"hot_exit": false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment