The Artima Developer Community
Sponsored Link

.NET Buzz Forum
VS.NET Tip: Collapsing Lines in an ASPX or HTML File

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Peter G Provost

Posts: 849
Nickname: pprovost
Registered: Aug, 2003

Peter G Provost is a Solution Architect for Interlink Group in Denver, CO.
VS.NET Tip: Collapsing Lines in an ASPX or HTML File Posted: Mar 24, 2004 9:41 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Peter G Provost.
Original Post: VS.NET Tip: Collapsing Lines in an ASPX or HTML File
Feed Title: Peter Provost's Geek Noise
Feed URL: /error.aspx?aspxerrorpath=/Rss.aspx
Feed Description: Technology news, development articles, Microsoft .NET, and other stuff...
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Peter G Provost
Latest Posts From Peter Provost's Geek Noise

Advertisement

One of the things I love about the C# editor in VS.NET is how it lets you collapse regions into a little plus sign. Then when I want it back I can just click to plus to see what's there.

I'm currently working on a Windows SharePoint Services (WSS) Site Definition and I'm using VS.NET to edit the template ASPX files. What I really wanted was a way to collapse table and div tags down into plus signs so I could get the out of my way.

Well, it turns out you can do it!

Here's how:

Select the text you want to collapse, and choose Outlining | Hide Selection from the Edit menu (or just use CTRL-M, CTRL-H).

POW! The file now has a collapsed region. You can open and close that region by clicking the plug sign or using CTRL-M, CTRL-M.

Very cool.

BTW... so far this works in any text file you open in VS.NET. We'll see if that keeps up.

Read: VS.NET Tip: Collapsing Lines in an ASPX or HTML File

Topic: Windows XP Service Pack 2 RC1 Now Available Previous Topic   Next Topic Topic: Experts on Flat Screen - CeBIT 2004 live coding and demos

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use