Sublime Text 2: Difference between revisions

From wikinotes
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
= Default Hotkeys =
= Default Hotkeys =
<blockquote>
<blockquote>
{| class="wikitable"
<syntaxhighlight lang="yaml">
| Hotkeys || ||
ctrl + r:            # list functions
|-
ctrl + shift + p:    # ener command (install package, markdown preview, etc)
| <pre>CTRL + R</pre> || || List Functions
alt + shift + num:  # switch column views
|-
ctrl + shift + num:  # move window to specific column
| <pre>CTRL + SHIFT + P</pre> || || Enter Command (install package, markdown preview, etc)
ctrl + num:          # select column
|-
</syntaxhighlight>
| <pre>ALT + SHIFT + NUM</pre> || || Switch Column Views
|-
| <pre>CTRL + SHIFT + NUM</pre> || || Move Window to Specific Column
|-
| <pre>CTRL + NUM</pre> || || Select Column
|}
</blockquote><!-- Default Hotkeys -->
</blockquote><!-- Default Hotkeys -->


Line 21: Line 15:
<blockquote>
<blockquote>
{| class="wikitable"
{| class="wikitable"
| <pre>~/.config/sublime-text-2/Packages/User/Preferences.sublime-settings</pre> || || [[SublimeText2 Userprefs]] || main config
| <code>~/.config/sublime-text-2/Packages/User/Preferences.sublime-settings</code> || main config
|-
|-
| <pre>~/.config/sublime-text-2/Packages/Default (Linux).sublime-keymap</pre> || || [[SublimeText2 UserKeyPrefs]] || key config
| <code>~/.config/sublime-text-2/Packages/Default (Linux).sublime-keymap</code> || key config
|}
|}
</blockquote><!-- Config Files -->
</blockquote><!-- Config Files -->

Latest revision as of 01:12, 2 July 2022

Sublime Text 2 is a text editor, with a builtin package manager.

Default Hotkeys

ctrl + r:            # list functions
ctrl + shift + p:    # ener command (install package, markdown preview, etc)
alt + shift + num:   # switch column views
ctrl + shift + num:  # move window to specific column
ctrl + num:          # select column

Config Files

~/.config/sublime-text-2/Packages/User/Preferences.sublime-settings main config
~/.config/sublime-text-2/Packages/Default (Linux).sublime-keymap key config

Packages/Extensions

Install Package Manager

## Push CTRL+~ to get the terminal
## Copy + Paste the following code

import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')

Installing Packages

Here is an example of how to install a package

CTRL + SHIFT + P					# Gives you a UI line
Package Install					# Package Installer
Live Reload							# Search for package to install
** Enter