Skip to content

Instantly share code, notes, and snippets.

@pipster
pipster / gist:2726243
Created May 18, 2012 16:30 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@pipster
pipster / gist:2374761
Created April 13, 2012 07:19
Sublime Text 2 - Useful Shortcuts (PC)

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+X delete line
Ctrl+↩ insert line after
Ctrl+⇧+↩ insert line before
Ctrl+⇧+↑ move line (or selection) up
@pipster
pipster / IE conditionals
Created March 14, 2012 04:13 — forked from philsherry/IE conditionals
Conditional comments for including IE-related stuff
<!--[if lte IE 8]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<link rel="stylesheet" href="/css/ie.css" media="screen" />
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="/css/ie7.css" media="screen" />
<![endif]-->
<!--[if lte IE 6]>
<link rel="stylesheet" href="/css/ie6.css" media="screen" />
<![endif]-->
@pipster
pipster / gist:1992027
Created March 7, 2012 08:53 — forked from laustdeleuran/anon-function.js
JavaScript: Anonymous function
(function(){
// Safe, scoped JavaScript here. Phew.
})();