in

Platinum Bay

Peace, Love, and...

This Blog

Syndication


.NETicated

Visual Studio Code Formatting

Working on a website in Visual Studio I found myself annoyed again by the extra spaces around <script /> tags when I type Ctrl+K+D (Format Code). It turns out however that this is easy to change. As with most Visual Studio customizations, the answer lies in Tools > Options.

Under Tools > Options > Text Editor > Html > Format, click the ‘Tag Specific Options…’ button. Under ‘Client HTML Tags’ find ‘script’. Finally, under ‘Line breaks’, change the default value from “2 Before opening, within, and 2 after closing” to “Before and After”, like the Rush song.

This isn’t specific to HTML though, most of the languages under Text Editor support formatting options. Another change I typically make is for CSS to use the Compact rules.

Happy Formatting!

12-20-2009 6-29-49

Comments

December 20, 2009 8:19 AM

Pingback from  Twitter Trackbacks for                 Visual Studio Code Formatting - .NETicated         [platinumbay.com]        on Topsy.com

 

December 20, 2009 8:47 PM

Pingback from  Dew Drop &#8211; Early Edition &#8211; December 21, 2009 | Alvin Ashcraft&#039;s Morning Dew

 

December 21, 2009 10:18 AM

Pingback from  Twitter Trackbacks for                 Visual Studio Code Formatting - .NETicated         [platinumbay.com]        on Topsy.com

 

December 21, 2009 10:18 AM

I have been using this feature extensively lately. The default settings in VS ends up adding too many new lines for my taste.

 

December 21, 2009 10:24 AM

This post was mentioned on Twitter by SteveAndrews: Blogged: Visual Studio Code Formatting http://tinyurl.com/ydb2dmk Working on a website in Visual Studio I found myself...

 

December 21, 2009 11:17 AM

Ahh, thank you.  This has always bugged me.  There are so many small issues w/ VS that I could fix if I could just remember to open Tools > Options.

Ryan Donahue
 

May 20, 2010 6:39 PM

Pingback from  Mirada Tank Cap, Mirada Ca Discount Cinemas

 

May 20, 2010 6:52 PM

Pingback from  242 Headlight Face, 1983 Volvo 242 Turbo

 

May 21, 2010 5:21 AM

Pingback from  Apc Rs 1000 Replacement Battery Ul 1449, Lakewood Radiator Heater 1000

 

May 21, 2010 6:08 AM

Pingback from  Lexington High School Board, 2005 2006 Gto Rear Bumper

 

May 21, 2010 6:28 AM

Pingback from  P20 Hide, P205 75r15 Diameter

 

May 21, 2010 6:42 AM

Pingback from  1991 Nissan Pulsar Nx 1600 Sentra Se R, Pulsar 107.3 Online

 

May 21, 2010 6:50 AM

Pingback from  Part Plymouth Bp300 Van, Plymouth Duster Charger

 

May 21, 2010 7:10 AM

Pingback from  G1500 Full Size Van Gnc, C25 C2500 Pickup Cheap 1970 Toyota

 

May 21, 2010 9:54 AM

Pingback from  Supernova Explosion Video, Poweredge 2900 Rack Conversion Kit

 

May 21, 2010 11:09 AM

Pingback from  1992 Chevrolet Astro, Astro Van Heater Core

 

May 21, 2010 6:55 PM

Pingback from  Cx90 Cheap, Cx90 Radiator Power Steering Pump

 

May 21, 2010 11:34 PM

Pingback from  1999 Ford F500, Ford F500 Bulb Taurus Taurus

 

May 22, 2010 12:29 AM

Pingback from  Xg300 Sale Autos Elantra Touring Entourage, Entourage Cannes Music

 

May 22, 2010 1:04 AM

Pingback from  Mazda Protege Parts Brake Pads Spark Plug Wires, Ford F 150 Overland Park

 

May 22, 2010 8:23 AM

Pingback from  04 Dodge Sprinter 2500 Freightliner, 2009 Dodge Sprinter 2500 Body Parts Grand Caravan

 

May 22, 2010 6:44 PM

Pingback from  Trailblazer Ss Videos Grand Cherokee Srt8, K10 Suburban Price K5 Blazer Silverado

 

May 22, 2010 9:12 PM

Pingback from  Halo Projector Headlights Tundra, 2004 Highlander Cup Holder Toyota Tundra

 

May 22, 2010 11:11 PM

Pingback from  T100 Headlight Bulbs Hx 60w, T1000 Free Ready

 

May 23, 2010 1:27 AM

Pingback from  R63 Amg Bumper All Wheel Drive Gl320 Cdi, R63 Amg Wholesale Benz Floor

 

May 23, 2010 2:49 AM

Pingback from  Seat Covers Volkswagen Beetle, 1980 Volkswagen Fox

 

May 23, 2010 7:19 AM

Pingback from  Mariner Buy Anadarko Petroleum, Part Headlight Assembly Mercury Mariner - 228.animejin.com

 

May 23, 2010 7:36 AM

Pingback from  Mercedes Benz E430 Car Parts 4.3 L E55 Amg, E430 Part Replacement 2000 Mercedes - 292.an74.com

 

May 23, 2010 8:33 AM

Pingback from  Gmc C4500 Leaf Springs, Pictures Mercedes Benz Gl450 Graphics Clean Diesel - 458.an74.com

 

May 23, 2010 9:13 AM

Pingback from  Parts Nissan D21 Catalytic Converter Magnaflow, D21 Panavision Panasonic Varicam - 487.tgrconversions.com

 

May 24, 2010 10:49 AM

Pingback from  Britax Monarch Pink Sky Parkway, Nikon Monarch Atb 8 X 42 Waterproof Binoculars - 61.mfbattle.com

 

May 24, 2010 1:32 PM

Pingback from  B3500 Specifications Used, Discount B3500 Van 2001 Dodge Ram - 465.defutbolazo.com

 

May 24, 2010 7:47 PM

Pingback from  Star Wars Clone Trooper Kost?m, Isuzu Trooper Clutch Parts High Quality - 336.computeronlinebingo.com

 

May 24, 2010 10:35 PM

Pingback from  Dvd Volvo S80 Best Buy, Loyalty Discount Volvo S80 - 237.renters.ws

 

May 25, 2010 4:49 AM

Pingback from  Radiator Cooling Fan 1999 Chrysler Sebring, Chrysler Sebring Replacement Floor Mats 4 Door Sedan - 188.renters.ws

 

May 25, 2010 8:28 AM

Pingback from  Honda Crv Engine Cargo Liner, Buy 2006 Honda Crv - 355.mfbattle.com

 

May 25, 2010 7:02 PM

Pingback from  Best Buy Slx, Slx Engine V6 - 447.myipgirl.com

 

May 31, 2010 12:11 AM

Pingback from  1980 - 1991 @ Sl320 Parts Used Mercedes Benz Sun Visor, Mercedes Benz Sl320 Part Sl55 Amg R129 - 329.tvshowzone.com

 

May 31, 2010 12:11 AM

Pingback from  1994 - 1987 @ Millenia Principle, Headlight Mazda Millenia Repair Manual Timing Belt - 397.tijuanareader.com

 

May 31, 2010 12:13 AM

Pingback from  2000 - 1995 @ Consumo Mazda B2600 Carburetor, Mazda B2600 Sas Steering Box - 251.jeepsunlimted.com

 

May 31, 2010 2:01 AM

Pingback from  1990 - 2007 @ Corvette Office Chair, 1991 Corvette Performance - 89.luna-atra.net

 

May 31, 2010 2:02 AM

Pingback from  2005 - 1992 @ Ls460 Auto Spark Plug, Lexus Ls460 2008 Vs 2009 - 303.eumreborn.com

 

May 31, 2010 2:21 AM

Pingback from  1984 - 2003 @ Washington Dc Tourist Spots, New Yorker Best Books Huffington - 299.mfbattle.com

 

May 31, 2010 2:29 AM

Pingback from  1981 - 2007 @ Rx300 Bulb 921 2000 Lexus Lx470, Rx300 Review Automotive - 52.1fh.org

 

May 31, 2010 2:54 AM

Pingback from  1998 - 1980 @ 1996 2000 Lexus Sc400 Radiator Row Plastic Tanks, Crack Lexus Sc400 - 222.tvshowzone.com

 

May 31, 2010 2:56 AM

Pingback from  1989 - 2008 @ Monaco Motorhome Manufacturers, Dodge Monaco Car Parts Chrysler Cordoba - 445.codebluehacks.org

 

May 31, 2010 2:56 AM

Pingback from  2006 - 1982 @ Freestyle Audio Fusion Dmp Waterproof Headphones, Freestyle 2500 Manual British Telecommunications - 339.myipgirl.com

 

May 31, 2010 3:00 AM

Pingback from  1996 - 2004 @ Used Cars Mercury Grand Marquis Service, Headlight Front 1968 Mercury Montego - 80.1fh.org

 

May 31, 2010 5:29 AM

Pingback from  1981 - 1996 @ Gran Torino Band Trailer Michael Caine, Torino Promo Found - 448.unlockiphone30.net

 

May 31, 2010 5:33 AM

Pingback from  1993 - 1987 @ 2005 Mercedes Benz C240 4 Wheel Drive, Part Accessories Mercedes Benz 240d - 172.mfbattle.com

 

May 31, 2010 5:46 AM

Pingback from  1993 - 1983 @ Aftermarket Dodge W300 Ram 2500, W300 Discount M2 Memory Stick Micro - 469.zapstreaming.com

 

May 31, 2010 6:11 AM

Pingback from  1998 - 1980 @ 2003 Saturn Vue Automatic Transmission, Salute Replacement Kool Vue - 80.jordanbrandallamerican.com

 

May 31, 2010 6:15 AM

Pingback from  1992 - 2001 @ Chrysler Pacifica Wheels Bumper, Pacifica How To Make - 201.animejin.com

 

May 31, 2010 6:24 AM

Pingback from  1994 - 1993 @ Geo Prizm Manual Timing Belt, Geordie Dialect Phonology - 98.dlmreza.net

 

May 31, 2010 7:18 AM

Pingback from  1990 - 2007 @ Squareback Building, Buy Squareback Style Harley - 403.luna-atra.net

 

May 31, 2010 7:34 AM

Pingback from  1993 - 1987 @ Cl600 Parts 2004 Mercedes Cl55 Amg, Cl55 Amg Aftermarket Head Coil Springs - 362.rkwrh.com

 

May 31, 2010 7:45 AM

Pingback from  1996 - 1988 @ 530i Promotion First, 1995 Specs Bmw Series 530i Sedan - 353.codebluehacks.org

 

May 31, 2010 6:51 PM

Pingback from  2009 - 2008 @ 2000 Volvo S70 Reliability, S70 Central Heating Aftermarket Volvo V70 - 232.akemet.com

 

May 31, 2010 7:00 PM

Pingback from  2009 - 2008 @ Intrepid Museum Parts, Radiator End 2004 Dodge Intrepid Grand Caravan - 67.ja3ra.com

 

May 31, 2010 7:09 PM

Pingback from  2002 - 1980 @ Honda Ridgeline Sale Fl Dealers, Ridgeline Aftermarket Tail Lights Chrome Door Handle - 451.ja3ra.com

 

May 31, 2010 8:25 PM

Pingback from  1983 - 1994 @ 330ci Full Page Bmw, 330ci Second Hand Africa - 423.jeepsunlimted.com

 

May 31, 2010 8:35 PM

Pingback from  1986 - 1984 @ 2001 Pontiac Sunfire Fender, Sunfire Tgr 4 - 394.defutbolazo.com

 

May 31, 2010 8:45 PM

Pingback from  2000 - 1995 @ Gs300 Stage 1 Coolant, 2001 Lexus Gs300 Accessories Discount - 252.cmanager.org

 

May 31, 2010 8:57 PM

Pingback from  2008 - 1990 @ L300 3 Salvage Yards Truck Parts, Planets L300 2 Sale 2005 Saturn - 228.ja3ra.com

 

May 31, 2010 8:59 PM

Pingback from  1983 - 1994 @ Mazda 929 Sell, 929 Fairings Motorcycle Parts - 19.akemet.com

 

May 31, 2010 9:18 PM

Pingback from  1992 - 2009 @ 2005 Cadillac Escalade Mileage, Gl450 Mercedes Benz Gl Class Cadillac Escalade Infiniti Qx56 - 437.zapstreaming.com

 

May 31, 2010 9:19 PM

Pingback from  1995 - 1998 @ Rd400 Stock, Sd400 Discount Stubborn Dog - 303.dlmreza.net

 

Leave a Comment

(required )  
(optional )
(required )  
Add

About Steve

Steve Andrews is an independent consultant, INETA speaker, and Microsoft MVP for Visual Studio ALM. He has been working in technology for over ten years focusing on custom application development and Application Lifecycle Management. Steve is also Microsoft and IBM certified and a community fanatic having led sessions at nearly 100 events across North America. When he's not developing software solutions or engaging with the community about software technology, Steve is a closet singer and songwriter and plays the guitar and keys. Occasionally, Steve even gets to sleep. Occasionally.
Powered by Community Server (Commercial Edition), by Telligent Systems
© Platinum Bay | Some Rights Reserved Creative Commons License

Disclaimer: The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or annonymous comments) - so keep it polite, please.