R
R
Roman Koff2016-09-09 14:47:05
visual studio
Roman Koff, 2016-09-09 14:47:05

How to add a feature to the Visual Studio editor?

Can this be done at all? I want that when working with the code, the declarations of methods in the class are displayed in bold (for example, in relation to C# code). For example, the editor has this class:

public partial class FieldHelper
{
    public MvcHtmlString In__Value(string name, string value, int maxLength, ControlWidthEnum width, string cssClass, bool autocomplete, object attributes)
    {
        var input = new HtmlInputText(name, value);
        input.MaxLength = maxLength;
        input.CssClass = cssClass;
        input.Autocomplete = autocomplete;
        input.Attributes = attributes;
        return RenderWidth(input.ToString(), width);
    }
}

You want
public MvcHtmlString In__Value(string name, string value, int maxLength, ControlWidthEnum width, string cssClass, bool autocomplete, object attributes)
to be bold and the rest to be standard. Well, to make it visually more convenient to work.
How to solve such a problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
saltydogd, 2016-09-09
@saltydogd

The problem is solvable, but requires immersion in EnvDTE
https://habrahabr.ru/company/pvs-studio/blog/192486/
stackoverflow.com/questions/9697876/how-to-write-a...
www.mztools.com/ articles/2008/MZ2008008.aspx
or delve into the list of ready-made extensions
... Although I had some doubts about the possibility of changing the font of only one class of elements

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question