其他分享
首页 > 其他分享> > How to: View and edit code by using Peek Definition (Alt+F12)

How to: View and edit code by using Peek Definition (Alt+F12)

作者:互联网

How to: View and edit code by using Peek Definition (Alt+F12)

You can use the Peek Definition command to view and edit code without switching away from the code that you're writing.

Peek Definition and Go To Definition show the same information, but Peek Definition shows it in a pop-up window, and Go To Definition shows the code in a separate code window.

Go To Definition causes your context (that is, the active code window, current line, and cursor position) to switch to the definition code window. By using Peek Definition, you can view and edit the definition and move around inside the definition file while keeping your place in the original code file.

You can use Peek Definition with C#, Visual Basic, and C++ code. In Visual Basic, Peek Definition shows a link to the Object Browser for symbols that don't have definition metadata (for example, .NET types that are built in).

 

标签:Peek,code,definition,edit,Definition,window
来源: https://www.cnblogs.com/chucklu/p/16439851.html