First time here? Check out the FAQ!
1

hotkey for "set as main entry point"

  • retag add tags

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

frueter's avatar
25
frueter
asked 2022-09-20 15:33:30 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

Wingware Support's avatar
4k
Wingware Support
answered 2022-09-20 19:43:23 -0600
edit flag offensive 0 remove flag delete link

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 -0600) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer