Skip to content

Instantly share code, notes, and snippets.

@taynguyen
Forked from duylam/development-setup.md
Created February 21, 2017 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taynguyen/150196011a974100931bad4d68dc2d5a to your computer and use it in GitHub Desktop.
Save taynguyen/150196011a974100931bad4d68dc2d5a to your computer and use it in GitHub Desktop.
Development setup

Git

  1. Setup Formatting and Whitespace
  2. Ignore chmod changes

iTerm2

export PS1="\[\033[0;35m\]\w \$\[\033[0m\] "

Sublime 3 plugins

  1. Color theme: Monokai
  2. Babel
  3. Pretty JSON
  4. SublimeLinter
  1. DocBlockr
  2. Terminal
  3. Markdown Preview

SublimeLinter.sublime-settings

{
    "user": {
        "debug": false,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "load/save",
        "linters": {
            "eslint": {
                "@disable": false,
                "args": [],
                "excludes": []
            }
        },
        "mark_style": "squiggly underline",
        "no_column_highlights_line": false,
        "passive_warnings": false,
        "paths": {
            "osx": [
                "PATH TO NODE BIN"
            ]
        },
        "python_paths": {
            "linux": [],
            "osx": [],
            "windows": []
        },
        "rc_search_limit": 3,
        "shell_timeout": 10,
        "show_errors_on_save": false,
        "show_marks_in_minimap": true,
        "syntax_map": {
            "JavaScript (Babel)": "javascript"
        },
        "warning_color": "DDB700",
        "wrap_find": true
    }
}

Preferences.sublime-settings

{
	"detect_indentation": false,
	"folder_exclude_patterns": [
		"clients-module",
    "node_modules","build",
		"bower_components",
		".git",
		"tmp",
		"bin",
		"obj",
		".vagrant",
		"__pycache__"
	],
  "file_exclude_patterns": [
    ".pyc", ".pyo", ".exe", ".dll", ".obj",".o", ".a", ".lib", ".so", ".dylib",
    ".ncb", ".sdf", ".suo", ".pdb", ".idb", ".DS_Store", ".class", ".psd", ".db"
  ],
  "binary_file_patterns": [
    ".jpg", ".jpeg", ".png", ".gif", ".ttf", ".tga", ".dds", ".ico", ".eot",
    ".pdf", ".swf", ".jar", ".zip"
  ],
	"font_size": 15.0,
	"highlight_line": true,
	"ignored_packages": [
		"Vintage"
	],
	"line_numbers": true,
	"tab_size": 2,
	"translate_tabs_to_spaces": true,
	"word_wrap": "true",
	
	// Determines what character(s) are used to terminate each line in new files.
  // Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and
  // 'unix' (LF only)
  "default_line_ending": "unix",
 
  // Set to "none" to turn off drawing white space, "selection" to draw only the
  // white space within the selection, and "all" to draw all white space
  "draw_white_space": "selection",
 
   // Set to true to ensure the last line of the file ends in a newline
   // character when saving
  "ensure_newline_at_eof_on_save": true,
 
   // The encoding to use when the encoding can't be determined automatically.
   // ASCII, UTF-8 and UTF-16 encodings will be automatically detected.
  "fallback_encoding": "UTF-8",
  
  // Set to true to removing trailing white space on save
  "trim_trailing_white_space_on_save": true
}

MarkdownPreview.sublime-settings

{
  // Fix: https://github.com/revolunet/sublimetext-markdown-preview/issues/233
  "enable_autoreload": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment