Question

Is there a way (or shortcut) to tell VS 2008 that it cuts a line like this:

Before:

Some Text here  
This gets cut  
Some Code there

After:

Some Text here

Some Code there

What I want:

Some Text here  
Some Code there  

PS: I don't want to select the whole line or something like this... only the text I want to cut.

Was it helpful?

Solution

Unless I misunderstood you:
Just place cursor on the line you want to cut (no selection) and press Ctrl + x. That cuts the line (leaving no blanks) and puts the text in the Clipboard. (tested in MS VC# 2008 Express with no additional settings I'm aware of)

Is that what you want?

OTHER TIPS

Shift+Delete also works. Select a line and hit Shift-Delete it will remove the line and place that line in your clipboard.

Don't select anything, just hit ctrl+x when the cursor is on the line.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top