Ask Your Question
1

hotkey for "set as main entry point"

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

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
0

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

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

set-current-as-main-entry-point

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

Comments

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 -0500 )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

2 followers

Stats

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

Seen: 22 times

Last updated: Sep 20