Visual Studio 2015 View Code Behind Shortcut Command from .aspx file

时间:2018-02-01 18:36:38

标签: c# asp.net visual-studio webforms

Is it possible to set a hotkey to navigate to the code behind of a .aspx file? I recently lost this functionality with F7 after some glitches. I'm looking in the Tools > Options > Keyboard settings. The Web Form Editor View menu has no command to the .cs file like the CSharp Editor has as View > Designer. Even the CSharp Editor View > Code seems to be broken.

Nothing in my research seems to fix the issue. Has web forms support been dumped this much?

1 个答案:

答案 0 :(得分:2)

我相信View.ViewCode命令是您正在寻找的命令。您可以尝试点击Reset,然后选择Default键盘映射方案。

否则,您可以在此处手动设置全局快捷方式:

enter image description here

如果不这样做,您可能需要清除Visual Studio用户设置:

  1. 打开Visual Studio本机工具命令提示符。
  2. 运行Devenv /ResetSettings General
  3. 这会将设置重置为常规开发配置文件。