Can I style exception messages in Visual Studio?

I want to know if there is a way to add a style, for example: bold , italics, underline, etc. into the exception popup in Visual Studio.

For instance:

string keyword = "important stuff";
string anotherKeyword = "other important stuff";

throw new Exception($"My exception message with that important keyword: **{keyword}** and that other important keyword: *{anotherKeyword}*.");

What will give us this style:

"My exception message with this important keyword: important material and another keyword: another important."

Visual Studio Exception Popup

I think this can improve readability.

I am also wondering if this is possible in other IDEs, perhaps with a plugin?

What do you think?

+4
source share

Source: https://habr.com/ru/post/1668380/


All Articles