Skip to content

meancode/dev-setup

Repository files navigation

Development Workstation Setup

Install Order

  1. Git
  2. GitHub Desktop
  3. GitKraken
  4. Node.js
  5. Sublime Text
  6. Sublime Theme(s)
  7. Sublime Packages
  8. GULP
  9. Grunt

Git Considerations

Sublime Themes

Sublime Packages 🔥

  • Package Control
  • PackageResourceViewer
  • Alignment
  • AutoFileName
  • Autoprefixer
  • Babel
  • Babel Snippets
  • Bracket Highlighter
  • Colorpicker
  • ChangeQuotes
  • Delete​Blank​Lines
  • EditorConfig
  • EditorConfig Snippets
  • Emmet
  • Emmet CSS Snippets
  • Emoji
  • EncodingHelper
  • Dockblockr
  • Git
  • Gitgutter
  • Gist
  • JavaScript Completions
  • JSHint Gutter
  • ScopeHunter
  • Sidebar Enhancements
  • HTML-CSS-JS Prettify
  • HTML5
  • MarkdownEditing
  • phpfmt
  • SmartMarkdown
  • Trailing Spaces
  • Markdown Preview
  • LiveReload
  • Origami
  • Syntax Manager

Misc. Key Bindings

[
    { "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" }
]

HTML-CSS-JS Prettify

If you are working with React (or similar), there is one setting you need to pay attention to:

"e4x": true, // Pass E4X xml literals through untouched

See my full .jsbeautifyrc settings file for other changes I have made. Note that in order for GitHub to display it all pretty like, I had to change the name of this file to jsbeautifyrc.js but that will not work in Sublime Text.

Delete​Blank​Lines

Windows:

  • Ctrl+Alt+Backspace --> Delete Blank Lines
  • Ctrl+Alt+Shift+Backspace --> Delete Surplus Blank Lines

OSX:

  • Fn+Ctrl+Option+Delete --> Delete Blank Lines
  • Fn+Ctrl+Option+Shift+Delete --> Delete Surplus Blank Lines

Linux:

  • Ctrl+Alt+Backspace --> Delete Blank Lines
  • Ctrl+Alt+Shift+Backspace --> Delete Surplus Blank Lines

Trailing Spaces

The main feature you gain from using this plugin is that of deleting all trailing spaces in the currently edited document. In order to use this deletion feature, you may either:

  • click on "Edit / Trailing Spaces / Delete";
  • bind the deletion command to a keyboard shortcut:

To add a key binding, open "Preferences / Key Bindings - User" and add:

{ "keys": ["ctrl+shift+t"], "command": "delete_trailing_spaces" }

With this setting, pressing Ctrl + Shift + t will delete all trailing spaces at once in the current file! For OSX users, quoting wbond: "When porting a key binding across OSes, it is common for the ctrl key on Windows and Linux to be swapped out for super on OS X" (eg. use "super+ctrl+t" instead).

Beware: the binding from this example overrides the default ST's mapping for reopening last closed file. You can look at the default bindings in "Preferences / Key Bindings - Default".

At any time, you can toggle highlighting on and off. You may either:

  • click on "Edit / Trailing Spaces / Highlight Regions"
  • bind the toggling command to a keyboard shortcut:
// I like "d", as in "detect" (overrides a default binding, though).
{ "keys": ["ctrl+shift+d"], "command": "toggle_trailing_spaces" }

Cobalt2 Changes

Using PackageResourceViewer, edit the Cobalt2.sublime-theme file.

// Sidebar heading
{
    "class": "sidebar_heading",
    "color": [255, 255, 255],
    "font.bold": true,
    "shadow_color": [0, 0, 0],
    "shadow_offset": [0, -1]
},
// Sidebar entry
{
    "class": "sidebar_label",
    "color": [255, 255, 255],
    "shadow_color": [0, 0, 0],
    "shadow_offset": [0, -1],
    "font.size": 12
},

Global NPM Install

Install Node.js first.

  • create-react-app
  • grunt-cli@
  • grunt-init@
  • node-static
  • serve
  • webpack

To list all global modules:

npm list -g --depth=0

Browser Extensions

Sublime Text Links

About

Sublime Text, Terminal, NPM, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors