Skip to content

Latest commit

 

History

History
141 lines (100 loc) · 6.71 KB

text_editors.md

File metadata and controls

141 lines (100 loc) · 6.71 KB

Text Editors Guidelines

###Table of content:

  1. Obligatory settings
  2. Sublime Text
  3. Atom

##Obligatory Settings ###We use 2 spaces indent and also take care about trailing whitespaces

Ensure your editor is configured properly:

.vimrc

if has("autocmd")
  " remove trailing white spaces
  autocmd BufWritePre * :%s/\s\+$//e
endif

Neatbeans config

* Tools -> Options -> Editor -> On Save > Remove Trailing Whitespace From
* Select: All lines

RubyMine config

Go to preferences / editor and check:

* Ensure line feed at file end on Save
* Strip trailing spaces on Save

SublimeText config

// Trims white space added by auto_indent when moving the caret off the line.
"ensure_newline_at_eof_on_save": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
"trim_trailing_white_space_on_save": true

Atom config

  • Install Whitespace package
  • To configure press CMD + SHIFT + P -> Open Your Config
'.slim.text':
  whitespace:
    removeTrailingWhitespace: true

For controlling last, empty line at the end of document screenshot-whitespace

##Sublime Text

###Useful resources:

###In order to improve your workflow you may consider using some of extensions listed below:

  • Package Control - helps in installing and managing packages. Absolulety must have.

  • GitGutter - keeps track of git diff stats and shows them inline

    screenshot-gitgutter

  • SideBarEnhancements - adds some useful file operations available from sidebar panel

    screenshot-sidebar

  • Emmet (zencoding) - with code shortcuts (like ul>li.class*3) helps you write code much faster. Visit smashing magazine for more examples.

    demo-emmet

  • CursorRuler - draws vertical ruler in cursor position. Helps in tracking indentation level.

    screenshot-ruler

  • DashDoc - you can look up the word under the cursor or selected text in Dash using ctrl+h shortcut. We use Dash in Monterail, ask your PM for license details

    screenshot-dashdoc

  • Gist - you can create gists directly from sublime text in just few seconds.

    screenshot-gist

##Atom

###Useful resources:

###Terminal commands:

  • apm list - List of installed packages
  • apm install PACKAGENAME - Package install
  • apm uninstall PACKAGENAME - Package uninstall
  • apm list --installed --bare > package-list.txt - Creates list of installed packages
  • apm install --packages-file package-list.txt - Packages installation from file

###Useful packages for FE

  • autocomplete-sass - CSS property name and value autocompletions for SASS.
  • pigments - A package to display colors in project and files.

###Useful packages for BE

###Useful packages for everyone