简体   繁体   English

Visual Studio 2019 - 介入

[英]Visual Studio 2019 - Step in

I am currently using Visual Studio 2019, when I use the debug method Step In (F11) it prioritizes the command prompt over the actual Visual Studio 2019 program.我目前正在使用 Visual Studio 2019,当我使用调试方法Step In (F11)时,它会将命令提示符优先于实际的 Visual Studio 2019 程序。 How do I change it so that it will keep me within Visual Studio 2019 but open the command prompt on the side?如何更改它,以便它将我保留在 Visual Studio 2019 中,但在侧面打开命令提示符?

I had the same problem and googled a lot for this, here is the result in short and long story:我遇到了同样的问题并为此搜索了很多,这是长话短说的结果:

The short answer is: use SHIFT + ALT + F5 instead of F5 and the long answer with more details can be found here: Microsoft Documents for Visual Studio 2019简短的回答是:使用SHIFT + ALT + F5而不是F5 ,更详细的长答案可以在这里找到: Microsoft Documents for Visual Studio 2019

VISUAL STUDIO 2019视觉工作室 2019

Here is the way to do this with SIMPLE COMBO KEY, It is more simple than first solution:)这是使用 SIMPLE COMBO KEY 执行此操作的方法,它比第一个解决方案更简单:)

  1. Go to Tools menu Go 到工具菜单
  2. Go to Options Go 至选项
  3. Press Ctrl+E and search Keyboard // OR go to Environment>KeyboardCtrl+E并搜索 Keyboard // OR go 到Environment>Keyboard
  4. In right side type YOUR LANGUAGE NAME (I am using Python for example ) in search bar(below of "Show commands containing" I mean)在右侧的搜索栏中输入您的语言名称(例如,我使用的是 Python)(我的意思是在“显示包含的命令”下方)
  5. Go down and select the proper result belong your language, ( for Python you can choose "PYTHON.EXECUTEININTERACTIVE" from the results) Go 向下和 select 正确的结果属于您的语言,(对于 Python,您可以从结果中选择“PYTHON.EXECUTEININTERACTIVE”
  6. Click on the box "Press shortcuts keys:" and specify your combo key.单击框“按快捷键:”并指定您的组合键。
  7. Be aware that Visual Studio has a lot of default combination and combo keys and do not use any regular shortcut.( I used F8 )请注意,Visual Studio 有很多默认组合键和组合键,并且不使用任何常规快捷键。(我使用F8
  8. Check the "Use new shortcut in:" and select your place that want to use this shortcut (I suggest to use GLOBAL )检查“使用新快捷方式:”和 select 您想要使用此快捷方式的地方(我建议使用GLOBAL
  9. Click Assign > OK > Have Fun单击分配>确定>玩得开心

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM