Ubuntu 14.04 Install Sublime Text 3

1. Download the sublime text3 deb package

wget https://download.sublimetext.com/sublime-text_build-3103_amd64.deb

2. Install sublime text3

sudo dpkg -i sublime-text_build-3103_amd64.deb

3. Install Package Control

Open: View -> Show Control

Enter the following command:

import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

 4. After successful installation, you can see Package Control in the Preferences menu


5. Common shortcut keys

a.Ctrl+D

   Here Ctrl+D is used to select the next occurrence of the current word.

b.Ctrl+Shift+P

   Here Ctrl+Shift+P is used to show the Command Palette, "sspy" (short for Set Syntax: Python) is used      set the syntax of the current file to Python.

c.Ctrl+P

   Ctrl+P shows Goto Anything, and typing then filters on file and directory names.

d.@

   Goto Anything can also be used to show a function, line or word within a file.

   Type @ after a file name to filter on symbols.

e.Column Selection

   Windows+Linux: Right mouse button + Shift

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326823307&siteId=291194637