Skip to content
Matt Harley edited this page Feb 13, 2015 · 1 revision

Text Editors, why they're awesome!

{<1>}sublime pic

Better then an IDE

  • Speed
  • Learn once - swiss army knife
  • smaller amount of required screen space
  • Smaller learning curve
  • Easier version control then IDE's
  • Easier to customize
  • Better search and navigation functions and views
  • Faster setup times to start coding then IDE's.
  • Can handle a larger range of languages then any one IDE

Text editors

  • OSX/Linux

    • Sublime Text 2
    • Sublime Text 3
    • Vim
    • Emacs
    • Kate
    • SciTe
    • Gedit
    • nano
  • Windows

    • Notepad++
    • Sublime Text 2
    • Sublime Text 3
    • Vim
    • Emacs
    • Notpade

##Sublime Text 3

{<2>}The Sublime Text Logo

Sublime vs other text editors

Sublime Text editor offers features many other text editors do not while also maintaining a small learning curve. Older more mature text editors such as Vim can have very steep learning curves and can be difficult and time consuming to use initially. Sublime Text offers a wide variety of packages to increase productivity of coding across all the most common programming languages. It is python based and allows users to create their own plugin packages.

Key Features

  • Extensibility
  • Linting
  • Searching
  • Syntax Highlighting
  • Snippets
  • Autocomplete

Setup

  • Theming
  • Tabs as spaces
  • View layouts

Packages

Sublime text uses plugins called packages to extend it's features. Just some of the packages that can be installed for Sublime Text 3

  • package control

  • Advanced new file

  • pylint

  • pyLinter

  • Alignment

  • Origami

  • SimpleToDo

  • Soda Theme

  • Tag

  • ApacheConf

  • Better coffee script

  • Coffee Compile

  • Djaneiro

  • Django click

  • Django manage commands

  • Rails Developer Snippets

  • Sass

  • FuzzyFileNav

  • HTML5

  • HandleBars

  • SqlBeautifier

    • Package control Install packages and add repositories from git.

    • Advanced new file Makes it very easy to create new folders and files from within Sublime text.

    • pyLinter A Linter for the python language.

    • Sublime Alignment Align multiple selections to the same column by inserting spaces or tabs

    • Origami Creates new panes for you to view. It works seamlessly alongside the built-in layout commands.

    • SimpleToDo Manages and lists TODO's placed within your code.

    • Soda Theme Dark and light custom UI themes.

    • Tag "Tag" plugin is a collection of packages about tags, mixed together in an effort to provide a single package with utilities to work with tags.

    • Apache Config highlighter Highlight apache server config files for easier editing.

    • Better coffee script Highlight syntax for coffee script. Compile coffee script into javascript and show the output.

    • Coffee Compile Another syntax coffee script highlighter and compiler.

    • Djaneiro Django snippets for templates, models, form feilds, views and other auto completions.

    • Django Click Open django extend/include template tags (files) by ctrl-click.

    • Django manage commands This tool is a Sublime Text wrapper around django manage.py commands.

    • Rails Developer Snippets Snippets for rails development.

    • Sass This add-on adds syntax highlighting and tab/code completion for Sass and SCSS files.

    • FuzzyFileNav Fuzzy File Nav is a simple plugin that allows for quick navigation of the file system from the quick panel. It also allows for deletion, copying, moving, and creation of files and folders.

    • HTML5 Syntax highlighting for HTML5.

    • HandleBars JavaScript templating engine.

    • SqlBeautifier This is a SQL formatter plugin.

Install packages Sublime

Cmd shift p then Type "Install"
Search for package to install

List Installed Packages

Package Control: cmd shift P then type "list"

Package Settings

Can be set under the menu Sublime Text> preferences> package settings> package name> Settings - User.

Settings are written as standard .json files.

User settings

Can be set under the menu Sublime Text> preferences> Settings - User. Set things such as enable spell checking eg. "spell_check": true

Export Settings

Just copy the User directory under Sublime Text 3/Packages to the new computer. Additionally this User directory can be kept under source control for better management of the settings within sublime text.

Sublime shortcuts OSX (some)

  • Package manager: cmd shift P
  • Open User settings: cmd ,
  • Console: cntl `
  • Jump to matching brackets: cmd m
  • Search: cmd r or cmd f
  • Search all files in workspace: cmd shift f
  • Search for Selected: cmd e
  • Select and Search: cmd d
  • Swap lines: cntl cmd arrows
  • Select multiple: ctrl cmd g
  • View Layout Single: cnd alt 1
  • View Layout Columns 1: ctrl alt cmd 2
  • View Layout Columns 2: ctrl alt cmd 2
  • View Layout Columns 3: ctrl alt cmd 3
  • View Layout rows 1: ctrl alt shift cmd 2
  • View Layout rows 2: ctrl alt shift cmd 2
  • View Layout rows 3: ctrl alt shift cmd 3
  • View Layout grid: ctrl alt cmd 5