Is it possible to format code in Visual Studio Team Services
Asked Answered
K

3

13

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

Kaitlin answered 14/6, 2016 at 23:22 Comment(0)
K
3

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.

Kaitlin answered 9/6, 2017 at 4:12 Comment(0)
P
7

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

Perlie answered 15/6, 2016 at 14:5 Comment(1)
This is extremely inconvenient because the information pasted within might not make sense in the context of VSTS, resulting in weird looking comments and code.Kyne
T
5

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.

Tetrad answered 15/6, 2016 at 2:30 Comment(1)
So did nobody think "hey, people might want to include code snippets when creating Work Items in VSTS"? Lack of support for this makes the entire product a joke in my eyes.Lorenlorena
K
3

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.

Kaitlin answered 9/6, 2017 at 4:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.