Ask Your Question

hotkey for "set as main entry point"

asked 2022-09-20 15:33:30 -0600

frueter's avatar

Hi all,

how can I bind a hotkey to the context menu commant "set as main entry point"? Ideally this would "clear main entry point" if the selected file already is the entry point.

Cheers, frank

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-09-20 19:43:23 -0600

You should be able to add a key binding with the User Interface > Keyboard > Custom Key Bindings preference and set the command to:


However, this does not clear the main entry point if the current file is already the main entry point. That could be done with another key binding for the command clear-project-main-entry-point

If you wanted to create a binding that exactly matches what you wrote, the only way would be to write an extension script to implement that functionality and then bind it to a key.

edit flag offensive delete link more


Thanks, I almost had it but didn't find the right command (not sure why). set-selected-as-main-entry-point is actually what I was after, thanks!

frueter's avatar frueter  ( 2022-09-20 21:22:27 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2022-09-20 15:33:30 -0600

Seen: 1,425 times

Last updated: Sep 20 '22