Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

I don't know if many people know about this, so I thought I'd throw it out there. If you hold down Alt while dragging the mouse over a text selection in VS.NET (or hold Alt while using Shift-Arrows), it will do a BOX selection. In VS 1.0 you had to double click on the status bar where it said "STREAM" to switch it to "BOX". This doesn't exist in VB6 or prior.

 

So what is BOX selection? It means the usual highlighting of text is a rectangle rather than selecting from a start to and end point which includes all text on every line in between. It's probably easier to try it yourself than for me to explain it :)

 

One other "cool" feature of VS.NET: Last/Next Position. If you press Ctrl-"-" (Ctrl plus the minus key), it will jump to the last place you had the cursor. VERY useful for returning to code you looked at previously, especially after a "Goto Definition" jump.

 

As a side note, I use a MS Explorer mouse. With Intellipoint 4.0 software (free from MS), you can define keystrokes to mouse buttons, per EXE. I have defined the mouse-wheel button (not scrolling, but the click) to Ctrl-"-". I pretty much never use the middle mouse button since the mouse wheel does the up/down scrolling. By reassigning this, I can easily jump backwards in code to see where I've been. I also assigned Ctrl-Shift-"-" to the right-side button (I have a 5 button mouse with the Forward/Back buttons on the side), so that I can move forward through code as well, to get back to where I was. It's been extremely useful when looking at a couple of pieces of code - I find using the code splitter bar to be more trouble than it's worth for the most part (though useful in some scenarios).

 

Just thought I'd share this with everyone.

 

-Nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
  • *Experts*
Posted

More importantly, it does BOX pasting :)

 

-Nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...