开发者

visual studio shell F# keyboard shortcuts

I've started using F# with the visual studio shell and I like the capability to be able to send lines to fsi by highlighting them, but the alt+Enter shortcut is really awkward and I would be much happier with this being on shift+Enter. 开发者_Go百科 (mainly since shift+ up/down arrow is select lines already)

Does anyone know how to change this? Thanks.


You can alter the keyboard mappings within Visual Studio. If you go to Tools -> Options -> Environment -> Keyboard, you'll see a window like the image below.

In order to check existing bindings, place the cursor in the "Press shortcut keys:" box and hit "Shft+Enter". You'll then see any potential conflicts in the drop-down box as shown.

In the example below, I'm searching through Global, which means shortcuts for anything in the application. You can switch it to be just the console or whatever you like.

Once you're happy with the shortcut you want to use, you need to select the command from the window containing all of the Action.* lines and then press Assign.

visual studio shell F# keyboard shortcuts


So I don't mean to be trite, but have you tried mapping the key?

So for F# Interactive I see Alt+Enter mapped to:

ClassViewContextMenus.ClassViewMultiselectProjectreferencesItems.Properties

Have your tried mapping Shift+Enter (or whatever) to that command?

Tools->Options->Environment->Keyboard

You should be able to get it all working from there.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜