[ Prev ] [ Index ] [ Next ]

Sublime

Created Monday 09 January 2017


We'll be using the bleeding edge Sublime Text 3 as our IDE.


Installation

$ yaourt -S sublime-text-dev


Configuration

# Make sure you use spaces instead of tabs - Preferences > Settings and add this

	"translate_tabs_to_spaces": true



License (found in the wild)

# Help > Enter License NO LONGER WORKING!!!! Dang it.

—– BEGIN LICENSE —–
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
2FE898C4 8E4277A8 555CE714 E1FB0E43
D5D52613 C3D12E98 BC49967F 7652EED2
9D2D2E61 67610860 6D338B72 5CF95C69
E36B85CC 84991F19 7575D828 470A92AB
—— END LICENSE ——


Plugins

# Sublime gives the opportunity to add a great amount of addons. Here's some of the favorites^
# Enter the Command Palette with Ctrl+Shift+p


Package Control

# In order to get access to all these wonderful addons, one first have to add Package Control.
# In Sublime, go to View > Show Console and paste the following

import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

# You can now launch Package from the Command Palette


Sidebar Enhancement

# For the commonly used open/close etc etc in sidebar.
# Install with Package Controll; SidebarEnhancement


Clickable URLs

# Underlines and let you open links from Sublime
# Install with Package Control; Clickable URLs


Alignment

# Lets you align the code more neatly, lining up = (equals) etc.
# Install with Package Control; Alignment


TrailingSpaces

# Trim whitespaces
# Install with Package Control; TrailingSpaces


MarkDown Editing

# Better Markdown (.MD) support
# Install with Package Control; MarkdownEditing


DocBlockr

# Documentation/comments with ease
# Install with Package Control; DocBlcokr


Nbspr

# Let's you easily toggle spaces with  


StringEncode

# Lets you manipulate string - very useful to escape out syntax characters for code previews
# Convert special characters into their HTML entity; html_entitize
# Convert HTML entities into special characters; html_deentitize
# And much more! Check out the options with; stringEncode


Spacegray (theme)

# Pretty sweet theme
# Install with Package control; Theme - Spacegray
# Then add this to your settings file (Preferences > Settings)

{
  "theme": "Spacegray.sublime-theme",
  "color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme"
}


Sass

# For LaTex and Sublime - adds SASS syntax support


AutoPrefixr

# Creates the vendor prefixes (browser specific properties)
# Requres Node.js 4+ (you probably have it)
# If it isn't installed, do so with
$ pacman -S nodejs


Code Intel

# The SublimeCodeIntel provides hints to methods, functions, objects a.a.
# Must have for the OOD.


SublimeLinter

# Helps check the code. It interacts and checks code integrity in many forms and ways.


SublimeLinter-Php

# Same as above, but with the PHP extension.


GitGutter

# Keeps track of the latest changes (since last commit) with a little dot next to the line number.


PHP Completion Kit

# With PHP 7+ support.


CSS3

# Better CSS3 highlighting
# Once installed, disable the default CSS plugin by hitting Ctrl+P and type Disable Package
# From there, disable the CSS package.