Code Layout on Steroids!

A nifty feature available on v0.6.7.2 is the Code Layout Browser.

When you hit Ctrl+R (or whatever you had your shortcut set to), the active document is Regionerated. But if you hit Ctrl+R and keep the Ctrl button down, you will be presented with the Code Layout Browser.

The Code Layout Browser is similar to the Alt+Tab window browser in Microsoft Windows. It allows you to choose which Code Layout to apply on your code.

You can browse through the different Code Layouts using the shortcut key (typically “R”) while holding down the modifier key (typically Ctrl), similar to Alt-Tab.

The first item is always the Primary Code Layout (the one you chose in the settings form, be it the standard Code Layout or your own custom Code Layout). The first item is the most accessible item and is the one selected when hitting Ctrl+R without browsing.

The rest of the items are gathered from the “My Code Layouts” directory under your installation folder.

 

This entry was posted on Thursday, November 22nd, 2007at 3:06 pm and is filed under #develop Addin, Public Beta, Visual Studio Addin, What's New, v0.6, v0.6.7.2. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response or trackback from your own site.

 

3 Responses to “Code Layout on Steroids!”

  1. great stuff!!!!!

    Greetz
    BtV

    Posted by Anonymous on November 22nd, 2007 9:34 pm

  2. There should be a way to specify the shortcut key be a chord. That would make it a little more flexible in that regard. Especially when using with Resharper.

    Posted by Greg Gorman on February 22nd, 2008 12:16 am

  3. BTW, good stuff!

    Posted by Greg Gorman on February 22nd, 2008 12:17 am

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>