Tip/Trick: Increase your VS screen real estate by disabling HTML Navigation Bar
 
Published: 21 Sep 2009
Unedited - Community Contributed
Abstract
This article will help you to learn how to increase the Visual Studio 2010 screen view area by disabling the HTML navigation bar. Scott initially provides a screenshot of the default setup followed by additional screenshots demonstrating the steps the steps required to increase the screen view area.
by Scott Guthrie
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 18909/ 33

Introduction

Republished with Permission - Original Article

Below is a tip/trick I twittered via my Twitter account earlier today.  A number of people seemed interested in – so I thought i'd blog it here too.

HTML Navigation Bar in VS 2008

By default, when you are in HTML source-editing mode with VS 2008 and Visual Web Developer 2008 Express edition there is a set of drop-downs that are rendered immediately above the HTML text editor view:

This set of drop-downs is called the "Navigation Bar", and in the VS 2008 HTML editor they allow you to navigate between functions and methods defined within the HTML.  These include both JavaScript client-side functions defined inline within the .aspx/.html file, and server-side methods defined in-line within the .aspx file when in single-file mode (meaning no code-behind file).

Disabling the HTML Navigation Bar and Getting back some pixels

Personally I don't find the HTML navigation bar super useful – since I tend not to define JavaScript functions inline within the HTML (instead I use more unobtrusive JavaScript techniques and put my JavaScript code in separate files), and I usually use code-behind instead of single-file event handlers for server-side code.

If you are like me and also don't find yourself using that particular navigation toolbar much, you'll be happy to know that you can turn it off in VS 2008 and get back about 40-50 pixels that can instead be applied toward your HTML source code view.  To-do this, just select the Tools->Options menu item within VS, navigate to the "Text Editor->HTML" node and uncheck the "Navigation Bar" checkbox option:

Once you do this and press the "ok" button, you'll find that the drop-downs are gone and you have more screen real estate:

(Note: if there is no immediate change after you hit ok, try closing and then re-opening the HTML/ASP.NET file)

Hope this helps,

Scott

P.S. By default with VS 2010 (starting with Beta2) we are hiding the navigation bar when in HTML mode with the standard web profile – you can then turn it back on via Tools->Options if you find it useful.  VS 2010 also has a new optional "code optimized" web profile as well that turns off all toolbars, dropdown and HTML designers.

Resources



User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-26 10:55:53 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search