Skip to main content

Microsoft Silverlight

Answered Question Keeping XAML readable (was simple)RSS Feed

(0)

dr d b karron
dr d b k...

Member

Member

60 points

113 Posts

Keeping XAML readable (was simple)

Dear Visual Studioer and Silverlighters;

 

How do I get Expression Blend/Visual Studio to write code MY WAY ?

 

Specifically, I would like to put each property assignment pair on a separate line,

and end it with closing >

 

Why are comments getting in the way <!-- -->;

Intellitype/sense keeps complaining.

 

My XAML lines are getting too long.

Setting a max line length in the code editor only seems to fold the line;

i would like to have it tabbed out even with the name tag.

 

cheers!

dr. K

dr d b karron
karron@casi.net
http://www.casi.net/
-----
I will mark your response as an answer after i test it. I have not forgotten your post !
------

pattormey
pattormey

Member

Member

35 points

18 Posts

Answered Question

Re: Keeping XAML readable (was simple)

Amazing how big XMAL can get!

You can get part way to your objective playing with the Tools->Options->Text Editors options.. I think the one you want is Pretty Print. It will allow the <cntrl>k <cntrl>d to reformat your document. It's also Edit->Advanced->Format Document

 I saw it on a tip from Jesse Liberty but forgot which ones he recommended..

Pat Tormey PE
MS MVP
New Hampshire USA
PTormey@4square.net
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities