简体   繁体   English

F# Visual Studio 中的交互式热键

[英]F# Interactive hotkeys in Visual Studio

When developing in F# there are two main actions I keep doing all the time:在 F# 中开发时,我一直在做两个主要操作:

  1. Switching between development (the code window) and F# Interactive.在开发(代码窗口)和 F# Interactive 之间切换。 I'd like to know if there is some kind of hotkey that'll allow me to toggle between them, so I dont have to use the mouse?我想知道是否有某种热键可以让我在它们之间切换,所以我不必使用鼠标? That certainly breaks my workflow.这肯定会破坏我的工作流程。

  2. I feel the urge to constantly clear up FSI (the option you find when right clicking and selecting the Clear All command).我有一种不断清除 FSI 的冲动(右键单击并选择 Clear All 命令时找到的选项)。 I've looked up in Visual Studio Keyboard options but I can't find the Clear All command in the commands list.我在 Visual Studio 键盘选项中进行了查找,但在命令列表中找不到 Clear All 命令。

Do hotkeys exist for any these actions?这些操作是否存在热键? If not, would defining macros for them help me in any way?如果没有,为他们定义宏会以任何方式帮助我吗?

Thanks谢谢

CTRL+Alt+F activates FSI. CTRL+Alt+F 激活 FSI。 This, in a macro, would also do it:这在宏中也可以做到:

DTE.Windows.Item("{DEE22B65-9761-4A26-8FB2-759B971D6DFC}").Activate() 'F# Interactive

CTRL+Tab will put you back in the editor (assuming that's where you were before). CTRL+Tab 会让你回到编辑器中(假设你以前在那里)。

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

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