Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+X | delete line |
Ctrl+↩ | insert line after |
Ctrl+⇧+↩ | insert line before |
Ctrl+⇧+↑ | move line (or selection) up |
/* Animate to natural width */ | |
body { background: black; padding: 100px; margin: 0; } | |
.progress-bar { | |
border: 2px solid red; | |
border-radius: 14px; | |
} | |
.progress-bar > div { |
import sublime, sublime_plugin | |
import os | |
class DetectFileTypeCommand(sublime_plugin.EventListener): | |
""" Detects current file type if the file's extension isn't conclusive """ | |
""" Modified for Ruby on Rails and Sublime Text 2 """ | |
""" Original pastie here: http://pastie.org/private/kz8gtts0cjcvkec0d4quqa """ | |
def on_load(self, view): | |
filename = view.file_name() |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+X | delete line |
Ctrl+↩ | insert line after |
Ctrl+⇧+↩ | insert line before |
Ctrl+⇧+↑ | move line (or selection) up |
/** | |
* Sass mixins | |
*/ | |
@charset "UTF-8" | |
// Force output of above line by adding a unicode character. ♫ | |
// ----------------------------------------------- | |
@mixin textFillColor($type) |
// Sass v3.2.3 | |
$menu-text-color: #333; | |
$menu-bg-color: #ccc; | |
#navbar { | |
width: 80%; | |
height: 23px; | |
class RomanNumeral | |
def self.add_roman(roman_number) | |
result = 0 | |
roman_number.each_char do |c| | |
result += roman_lookup(c) | |
end |
[merge] | |
keepBackup = false | |
tool = custom | |
[mergetool "custom"] | |
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "$BASE" "$REMOTE" "$LOCAL" "$MERGED" | |
keepTemporaries = false | |
trustExitCode = false | |
keepBackup = false |
<textarea name="my-xml-editor" data-editor="xml" rows="15"></textarea> | |
... | |
<textarea name="my-markdown-editor" data-editor="markdown" rows="15"></textarea> | |
... | |
<script src="//d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js"></script> | |
<script> | |
// Hook up ACE editor to all textareas with data-editor attribute | |
$(function () { |