Add Ctrl+Shift+F5 key binding to run code in editor - #7
Merged
Conversation
Closed
Agent-Logs-Url: https://github.com/N-ha-1050/python-code-editor/sessions/82f463a6-8907-4483-9e28-5a9ff6468987 Co-authored-by: N-ha-1050 <69199126+N-ha-1050@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add F5 key execution functionality in editor
Add F5 key binding to run code in editor
May 3, 2026
…conflict Agent-Logs-Url: https://github.com/N-ha-1050/python-code-editor/sessions/cf0a6d0a-6198-4cc4-8ee0-ef18236a1f9d Co-authored-by: N-ha-1050 <69199126+N-ha-1050@users.noreply.github.com>
Contributor
Author
Changed the binding to |
Copilot
AI
changed the title
Add F5 key binding to run code in editor
Add Ctrl+Shift+F5 key binding to run code in editor
May 3, 2026
N-ha-1050
marked this pull request as ready for review
May 3, 2026 18:30
N-ha-1050
approved these changes
May 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The editor supported running code via
Ctrl+Shift+E/Command+Shift+Ebut lacked an additional keyboard shortcut. This addsCtrl+Shift+F5(Command+Shift+F5on Mac) as an alternative way to run code, avoiding conflict with the browser's built-in F5 page refresh shortcut.Changes
src/editor.ts: Adds a newrunCodeCtrlShiftF5command bindingCtrl+Shift+F5to the existingrunfunction — existingrunCodecommand is untouched