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

Cutting the current line without selecting with CTRL+X #14694

Open
Paveljolak opened this issue May 13, 2024 · 3 comments
Open

Cutting the current line without selecting with CTRL+X #14694

Paveljolak opened this issue May 13, 2024 · 3 comments
Labels
enhancement info needed Additional information requested—reprex, steps, open question, etc. source editor

Comments

@Paveljolak
Copy link

I am new to RStudio as we are using it for one of my CS courses that I have. As many different editors that I had used I tried cutting a full line without selecting it with CTRL+X. And nothing happend, I had to manually select the full line and then cut it. I tried looking for a solution or if the shortcut exists. I only found some issues already closed due to being "stale" or "inactive", but I don't think this feature exists.

It would be amazing if this feature could be added to RStudio, as it would make writing and editing in it much more faster and enjoyable.

@Paveljolak Paveljolak added enhancement new New incoming issues, ready for initial review. labels May 13, 2024
@ronblum
Copy link
Contributor

ronblum commented May 13, 2024

@Paveljolak Thank you for the suggestion! I'm not sure that I understand: Are you looking to be able to place the cursor in a line and then cut the entire line with Ctrl-X without selecting the line?

@ronblum ronblum added info needed Additional information requested—reprex, steps, open question, etc. source editor and removed new New incoming issues, ready for initial review. labels May 13, 2024
@gtritchie
Copy link
Member

This is a shortcut found in Visual Studio Code. Ctrl+X (Cmd+X on Mac) cuts the entire line if there is no selection.

@Paveljolak
Copy link
Author

@Paveljolak Thank you for the suggestion! I'm not sure that I understand: Are you looking to be able to place the cursor in a line and then cut the entire line with Ctrl-X without selecting the line?

Yes, exactly that.

This is a shortcut found in Visual Studio Code. Ctrl+X (Cmd+X on Mac) cuts the entire line if there is no selection.

Exactly as specified in this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement info needed Additional information requested—reprex, steps, open question, etc. source editor
Projects
None yet
Development

No branches or pull requests

3 participants