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

"paste code into file" to where the cursor is #3311

Closed
stevenlis opened this issue Jun 26, 2019 · 8 comments
Closed

"paste code into file" to where the cursor is #3311

stevenlis opened this issue Jun 26, 2019 · 8 comments
Assignees

Comments

@stevenlis
Copy link

The current "paste code into file" feature "append" code to the file and create a new cell instead of "paste" the code to where the cursor is.

2

@rchiodo
Copy link
Contributor

rchiodo commented Jun 27, 2019

We felt the end was much safer than where your cursor/selection was. And more likely to be runnable.

@stevenlis
Copy link
Author

stevenlis commented Jun 27, 2019

I think most of the time the cursor is at the end of a file anyway...and also creating a new cell might be unnecessary.

so maybe add a toggle?

@rchiodo
Copy link
Contributor

rchiodo commented Jun 27, 2019

Not sure if it's always at the end of the file. I would think it would be sitting on the last cell run.

@stevenlis
Copy link
Author

indeed. If I want to insert some code in the last cell run, which is not the last cell of the file, then it would make more sense to put the code at where the cursor is without creating a new cell.

@stevenlis
Copy link
Author

@rchiodo Hey man. Is there a setting to send the code without creating a new cell? If I just wanna send the code to the middle of a cell, it doesn't really make sense to create a new one.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 7, 2019

No sorry there isn't. It always creates a cell.

@stevenlis
Copy link
Author

@rchiodo possible that you guys can consider adding a toggle for that?

@rchiodo
Copy link
Contributor

rchiodo commented Aug 7, 2019

Your best bet is to log an issue for exactly that. But we won't spend time on it unless there's more people upvoting/commenting on your bug. (Actually submitting a PR is really the fastest way to get anything you want).

@lock lock bot locked as resolved and limited conversation to collaborators Aug 14, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants