Showing posts with label shortcuts. Show all posts
Showing posts with label shortcuts. Show all posts

Saturday, January 2, 2010

vi useful shortcut keys

dw delete a word
d$ delete to end of line
D delete to end of line
w move to next word (start)
e move to next word (end)
5w move 5 words and place cursor at first
5e move 4 words and place cursor at end
0 move to start of line
d5w delete 5 words
5dd delete 5 lines
Ctrl+R redo
ce change to end of word
c5e change 5 words
c$ change to end of line
C change to end of line
ctrl+G location in the file
gg move to start of file
% find matching ()[]
:! execute external command
v start select (virtual mode)
V start select whole line (virtual mode)
ctrl+v select rectangle
:w f write selection to file f
Y or yy copy current line
y copy the selection
d delete the selection
:r f insert text from f to this file
:r !ls put the ls output to current line
o open line below cursor
y5w yank 5 words
:set is set incrimental search
:help help
: ctrl+D possible completions
fa move to first 'a' character
ta move to before first 'a' character
dfa delete until the first 'a' character
cc clear current line and enter insert mode
S clear current line and enter insert mode
ma bookmark 'a' for the position
'a go to bookmark 'a'
'. go to last modification
HML jump to top/middle/last line of the screen
J join current lines
~ toggle case
* find the word under cursor.
. repeat last changing.
--jump-target position target line on line num of screen.

Monday, November 2, 2009

Shortcut keys

Chrome


  1. Ctrl+U - View source

  2. Ctrl+Shift+V – Paste current content from the clipboard without formatting

  3. Ctrl+L or Alt+D - Highlight URL

  4. Ctrl+Backspace - Fast delete

  5. Shift & wheel - Scrolls horizontally on the page



Windows 7


  1. Win+Left: Move windows to half left of the screen

  2. Win+Right: Move windows to half right of the screen

  3. Win+Up: Maximize the windows

  4. Win+P: Projector mode



Eclipse


  1. Ctrl+Shift+P: Find matched braces

  2. Alt+Shift+P: Select the outer block

  3. Ctrl+Shift+R: Open resource

  4. Alt+Shift+W: Open file in Navigator/Project Explorer/...



Total Commander


  1. CTRL+P: Copy current path to cmd line

  2. Ctrl+Shift+Ins: Copy file path to clipboard

Tuesday, October 20, 2009

Eclipse - how to select enclosed element

1. Place your mouse inside the element which is needed to select
2. Press Alt + Shift + Up to expand the selection
3. Press Alt + Shift + Down to collapse the selection

* The image below is wrong (Alt instead of Ctrl)

Eclipse - how to find the match brace

1. Place mouse after the starting brace or after the ending brace
2. Press Ctrl + Shift + P to jump to the match brace
3. Press Ctrl + Shift + P again to jump back.

Eclipse - how to select a block

1. Place mouse at the beginning of the block
2. Press Alt + Shift + Right

Monday, October 5, 2009

Eclipse shortcut keys


  • How to view/modify shortcuts in eclipse (version 3.4.2): Windows --> Preferences --> General --> Keys

  • Delete a line: Ctrl + D

  • Active editor: F12

  • Find and replace: Ctrl + F

  • Incremental find: Ctrl + J

  • Duplicate lines: Ctrl + Alt + Down