Jay Wick
Jay Wick

Reputation: 13737

Is it possible to format code in Visual Studio Team Services

Is there a means to format code snippets in any way, ideally a Markdown like syntax, in Visual Studio Team Services (formerly Visual Studio Online)?

Using italics just doesn't sit right with me.

Formatting code in Visual Studio Team Services

Upvotes: 13

Views: 3011

Answers (3)

Jay Wick
Jay Wick

Reputation: 13737

Just found this extension from the feature request @eddie linked.

Markdown

Markdown is a custom work item form control, that allows you to edit the rich text fields on your work items with a Markdown enabled editor.

Upvotes: 3

Frederic
Frederic

Reputation: 652

You can copy/paste formatted code from a html view. For example Google docs with the "Code pretty" AddOn or an online tool like http://www.manoli.net/csharpformat/ This way you can also change font size, family and color if you need. It looks like enter image description here

Upvotes: 7

Eddie Chen - MSFT
Eddie Chen - MSFT

Reputation: 29976

No, there is no way to achieve this feature. And there is already a feature request submitted for this on VSTS User Voice. You can vote it up here: Support markdown as an alternative to html for workitems.

Upvotes: 5

Related Questions