Context Help in Visual Studio

Is there a way to change the context-sensitive help in Visual Studio so that it only searches for text under the carriage instead of a compilation error in your code?

Additional Information: After compiling and receiving a compilation error (underlined), placing the cursor in the underlined text and pressing F1 will lead you to the Compliation error page instead of the help for the function under the carriage. Can this behavior be changed to always refer to the method / keyword tooltip?

Language: C #

+4
source share
2 answers

The only solution I found was to fix the compilation error; -)

The workaround is to use the "Dynamic Help" window (from the help menu or CTRL-F1, D), the compilation error is at the top of the list, but the next item will be indicated.

For those who do not understand the question, here is a trivial, unrealistic example:

int myInt = new int(3); 

As soon as you delete the line, "new int (3);" the bit is underlined in red, but if you select the second "int" and press F1, you will get help with declaring integers.

However, if you compile it, the insult section is underlined with a blue line and selects 'int', and pressing F1 helps you with a compilation error. This is not just a case of moving the focus to the error list window.

+2
source

If I remember, after compilation, the default window is the message (error list). If you press F1 at this moment, you will receive help in reporting the error. But if you select the code window, you will get help with the selected text.

Is this the behavior you are experiencing?

0
source

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


All Articles