开发者

Visual Studio - Can I open aspx and code file with one action?

R开发者_如何转开发ight now, I don't have the "Show All Files" option selected - that means I only see the .aspx files in my web application project, and don't see the .vb or .designer.vb files.

I can open the code by right-clicking on the aspx, and selecting "View Code", but it would be really nice if there was a way to double-click on the aspx file and have it open both the aspx and the aspx.vb.

Is this possible?


  • F7 will show the code behind when you're in the design view
  • Shift + F7 will show the design view when you're in code behind

thats the fastest way to switch and I think the best way to achieve your goal of switching between files.

if you mean you want a split screen that isn't possible - at least without extensions


Edit: I just discovered that you can single click (or otherwise select via the keyboard) on the item itself in the solution explorer and hit either F7 or Shift+F7 there to directly open the code or designer directly. No double click needed. Never realized that before ;-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜