Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking the line number gutter in the script editor should select that line of code #1247

Closed
Tracked by #40488
Cambysses opened this issue Jul 24, 2020 · 2 comments · Fixed by godotengine/godot#42723

Comments

@Cambysses
Copy link

Describe the project you are working on:
Very new to Godot, just starting on some simple tutorial projects.

Describe the problem or limitation you are having in your project:
No shortcut to select line of code in text editor.

Describe the feature / enhancement and how it helps to overcome the problem or limitation:
In most code editors, you can click on the line number to select that line. Godot's built-in editor lacks this feature, unless I am doing something incorrect.

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
Left click line number in text editor --> Line becomes highlighted and selected

If this enhancement will not be used often, can it be worked around with a few lines of script?:
N/A

Is there a reason why this should be core and not an add-on in the asset library?:
It's a very basic feature common to most editors that I am aware of.

Thanks 🤠

@Calinou Calinou changed the title Clicking line number in text editor should select that line of code Clicking the line number gutter in the script editor should select that line of code Jul 24, 2020
@Calinou
Copy link
Member

Calinou commented Jul 24, 2020

For the record, this is already implemented when you click-and-drag the cursor over multiple lines. It's just that clicking on a line number won't select the whole line (like it does in VS Code, for instance).

@bojidar-bg
Copy link

Note that only the area on the left of the line number is used for setting breakpoints, so this proposal will not conflict with breakpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants