Tan Nguyen
Tan Nguyen

Reputation: 111

Append element to editor in visual studio extension

I am working in visual studio extension and I want to add some visual element to Visual studio editor. But I can't find the way to do that. Please help me, Thank you very much!

I append some image about my idea below:

Upvotes: 1

Views: 154

Answers (1)

Tan Nguyen
Tan Nguyen

Reputation: 111

Finally I found the solution base on answer of @Sergey Vlasov.

  • For adornment on top, bottom or every where of text you should define ColorAdornment inherit Canvas

  • For margin the text with other line you should use bottomSpace on contructor of IntraTextAdornmentTag.

  • You can find solution at: https://github.com/thuantan2060/intra-textadornment

Upvotes: 1

Related Questions