-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Editor feature that spans multiple cells #141673
Comments
Thanks for the suggestion. That does sound like a handy feature. Right now each cell is (as you noticed) treated as a separate editor. |
Supporting this across cells is a core Code issue to solve. |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
@Yoyokrazy do you think this would be included in the backlog at some point ? I think it's important but super difficult to search for it ; took me multiple tries and I almost opened a new one. So it's very tough for other people to find and upvote. Without this feature, there is no useful "Refactor" feature. When I try Refactor, it says there are no refactorings available. Whereas I'd like to at least be able to change the name of a function / variable. Edit: it seems interesting that the Python extension can correctly identify tokens across cells, since it underlines in yellow occurences of a function after I rename it in a different cell. Cheers ! |
Updates from an initial exploration into this:cc/ @rebornix The initial work has gone with the approach of creating a More thoughts, but bulleted:
Todo tasks:
|
Closing this as completed, the core functionality is present in stable. If bugs are found or more features are requested, they should be filed in new issues. |
Right now if I do an alt-click (or ctrl-d) in the notebook extension it behaves just like the regular editor within a single cell. However, my workflow often involves using multi-select throughout a notebook because I have the same variable/whatever repeated in multiple cells near each other, but not in the same cell. It would be extremely useful if there was a way to make multi-cursor selections span multiple cells.
In fact, my work flow right now is to open a notebook in text only mode and use multi-select there with the jupyterlab interface open in a browser window. With this feature implemented I could dispense with the headaches of saving and reloading there and have it all in one vscode interface.
The text was updated successfully, but these errors were encountered: