Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know... How to enable Virtual Space - #015

Today's tip is mutually exclusive to yesterday's word wrap tip, meaning try as you might, you won't be able to enabled both word wrap and virtual space.  But if you figure out a way to do it, please send me mail.  =)

Cursor in Virtual Space

Note: in the picture above, I've circled the cursor in the virtual space.  I have the visible white space enabled to illustrate there are no spaces after the Program class name.

I never use word wrap, and I made it a few weeks using virtual space, but neither was quite for me.  I'm curious how you use these features, so please leave a comment and share with the group.  I'm guaranteed to learn something new.  =)

Tip of the Day Archives

Technorati tags: ,
Posted: Wednesday, August 15, 2007 3:00 AM by saraford

Comments

Doug said:

I really like the word-wrap feature.

Other favourites:

- ctl-K, ctl-D to reformat document

- a vertical ruler set to 8 characters so that it is easy to see where a method is finished

--> it would be neat to have an other way to match openning and closing braces for reading methods larger than a screenful.  You could drag a vertical ruler line to where you wanted it and use it to match openning and closing blocks.

# August 15, 2007 9:49 AM

Jason Haley said:

# August 15, 2007 10:32 AM

John Kraft said:

Wow.  I never really understood what 'virtual space' was until this post.  Now that little checkbox makes sense.  I have seen it before, though, and I don't like it.

# August 15, 2007 11:37 AM

GregM said:

I always use virtual space, and really hate using machines that don't have it enabled.  I started using it because that's how Emacs behaves.  I started off with Emacs as my main editor, and still to this day customize Visual Studio to use Emacs-like keybindings.  (I don't actually use the Emacs mode, because I find it does things that I don't want it to do, though I can't remember now what they might be.)

One of the things that it is really useful for is lining up things in columns even when there are blank lines between the columns, or when you're adding a new column beyond the end of the current line.

The other thing that I find it most useful for is that your cursor doesn't jump back and forth across the screen as you are using the keyboard navigation to move up and down the document, just because some lines are shorter than others.

# August 15, 2007 1:16 PM

Naveen Kada said:

We can match the opening and closing braces using Ctrl + } or {.

# August 17, 2007 4:25 AM

Ahmed said:

I tried Virtual Space and didn't like it. I do like how VS 2005 puts the cursor in the correctly tabbed place when you click past that point on an empty line.

Word Wrap has got to be a no-no for code!

Would be nice:

- To be able to jump to the matching bracket using a key combination - useful when both brackets are not visible at the same time.

- To open/close outlined areas using a key combination.

# August 17, 2007 5:06 AM

NickV said:

It'd be nice if Ctrl+{ and Ctrl+} matched VB's begin and end statement keywords (e.g., "If ... Then" and "End If")

# October 12, 2007 12:25 PM

Visual Studio 2008 ワンポイント said:

昨日は 右端での折り返し をご紹介しましたが、今日は、右側での折り返しと同時には使用できない仮想空間のお話です。両方の機能を同時に有効にできた方は、ぜひ電子メールでお知らせください。 メモ : 上の図では、仮想空間内に置かれたカーソルを丸で囲んでいます。クラス名

# July 13, 2008 11:50 PM

Секреты Visual Studio said:

Этот и предыдущий совет являются взаимоисключающими, вы можете попробовать, но вам не удастся использовать

# July 25, 2008 3:02 AM

Sara Ford's Tip of the Day - in Italiano said:

Il tip odierno è mutuamente esclusivo con quello di ieri, il tip sul ritorno a capo automatico ,

# October 21, 2008 4:58 AM
New Comments to this post are disabled
Page view tracker