Skip to content

Instantly share code, notes, and snippets.

@ungalcrys
Created February 12, 2014 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ungalcrys/8955689 to your computer and use it in GitHub Desktop.
Save ungalcrys/8955689 to your computer and use it in GitHub Desktop.
hints: sublime text 2 with kubuntu
Sublime Text 2 - useful shortcuts (Ubuntu + KDE version)
## Multiple cursors
add next: Ctrl + D
remove last: Ctrl + U
select all: Alt + F3
## Column Selection
with keyboard: Ctrl + Alt + Up/Down
with mouse: Shift + Right Mouse Button Pressed
## Jumps
to commnd: Ctrl + Shift + P
to file: Ctrl + P
to symbol: Ctrl + R / (Ctrl + P), @
## Emmet
### HTML
#### ul>li*4
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
#### .container>.header+.main+.footer
<div class="container">
<div class="header"></div>
<div class="main"></div>
<div class="footer"></div>
</div>
#### .container>a+.main+.footer
<div class="container">
<a href=""></a>
<div class="main"></div>
<div class="footer"></div>
</div>
#### ul#someId
<ul id="someId"></ul>
#### ul.someClass
<ul class="someClass"></ul>
#### a.button[href=#]
<a href="#" class="button"></a>
#### li{my text}
<li>my text</li>
#### ul>li*4>a[href=#]{some link}
<ul>
<li><a href="#">some link</a></li>
<li><a href="#">some link</a></li>
<li><a href="#">some link</a></li>
<li><a href="#">some link</a></li>
</ul>
#### .container(>.header>header>h1{my website})+.main+.footer>footer
<div class="container">
<div class="header">
<header>
<h1>my website</h1>
</header>
</div>
</div>
<div class="main"></div>
<div class="footer">
<footer></footer>
</div>
#### header>h1^.margin
<header>
<h1></h1>
</header>
<div class="margin"></div>
### CSS
#### p20
padding: 20px;
#### w20p
width: 20%;
#### m10-20
margin: 10px 20px;
#### -transition
-webkit-transition: |;
-moz-transition: |;
-ms-transition: |;
-o-transition: |;
transition: |;
## Fetch
jump to command - Fetch: File / Manage Fetch / Fetch: Package
## Advanced new file
new file: Super + Alt + N
## Plain Tasks
set as task or create new task: Ctrl + I / Enter
tag: @some_tag
divider: -- + TAB
toggle done: Ctrl + D
## Join Lines
join selected/next line: Ctrl + J
multiple lines cursor: Ctrl + Shift + L
x word of lorem: loremX
## Split windows
1 frame: Alt + Shift + 1
2/3/4 frames horizontal: Alt + Shift + 2/3/4
4 squares: Alt + Shift + 5
2/3 frames vertical: Alt + Shift + 8/9
move tab to frame 1/2/3/4: Ctrl + Shift + 1/2/3/4
move cursor to frame 1/2/3/4: Ctrl + 1/2/3/4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment