views:

252

answers:

4

Hello,

I just started learning c# on vs 2008.

I found key combiations for

  1. select current word
  2. delete current line

is there a key combination to select current line?

+1  A: 

HOME , SHIFT + END

Andreas Grech
Or home, home, shift+end if you want to select the indentation too.
Mikko Rantanen
yup, that is correct
Andreas Grech
A: 

you can use ctrl + w.

For more information you visit this user link: http://smallworkarounds.blogspot.com/2008/12/visual-studio-2008-tips-tricks-for.html

jalpesh
CTRL + W selects only the word the cursor is currently on, not the line
Andreas Grech
...which basically simulates a double-click
Andreas Grech
+1  A: 

You can also press CTRL+C to copy the whole line the cursor is currently in. You will not see a selection bar, but the entire line is copied to the clibboard. Then you can press CTRL+V to paste it anywhere you like.

EDIT: Make sure you don't have anything selected in the line, in that case only the selection will be copied to clipboard.

Olli
A: 

Guys!! Thanks!!!

Moon