You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using vscode with Jupyter extension, how to find/replace text within a notebook cell #141493
Select one occurrence of the text that you want to change.
Press Ctrl+Shift+L, to select all occurrences of current selection.
Then start editing all selection occurrences at the same time.
The other way is to use Alt+Click of the mouse on all areas you want to edit at the same time if Ctrl+Shift+L ends up selecting beyond parts which you wish to edit.
For the VS Code solution to this problem, I think we need the find/replace function to have the option of restricting it to the selected text instead of just confining it to the selected cell as the prior option can also easily achieve the selected cell option. Of course, having both options is even better.
Select one occurrence of the text that you want to change.
Press Ctrl+Shift+L, to select all occurrences of current selection.
Then start editing all selection occurrences at the same time.
The other way is to use Alt+Click of the mouse on all areas you want to edit at the same time if Ctrl+Shift+L ends up selecting beyond parts which you wish to edit.
For the VS Code solution to this problem, I think we need the find/replace function to have the option of restricting it to the selected text instead of just confining it to the selected cell as the prior option can also easily achieve the selected cell option. Of course, having both options is even better.
If I want to restrict my selection I don't use the mouse (as it's not easy, and takes too much time), I simply select the occurrence then keep pressing Ctrl+D to select only the next occurrence.
Activity
rchiodo commentedon Jan 25, 2022
Thanks for the suggestion. Find/Replace is handled by VS code core. Transferring.
rebornix commentedon Jan 25, 2022
Luis Gonzalez (@lgonzalezsa) thanks for your feedback, this can be a great addition to the new filter UX we introduced for the find widget
lgonzalezsa commentedon Jan 25, 2022
Awesome!
392781 commentedon Feb 4, 2022
Peng Lyu (@rebornix) Why not just make it so that you search within the current selection?
If you're focusing a cell, you search the cell.
If you're focusing the notebook, you search the notebook.
It seems unnecessary to make this a toggle.
sterafix commentedon May 30, 2022
Any update on this? I think find/replace is still a nightmare in Jupyter notebooks.
rouzki commentedon Jun 6, 2022
Hi any update ?
wandli commentedon Jul 1, 2022
Wanting update +1
jiawen1998 commentedon Jul 5, 2022
Any solutions to find/replace within the selected notebook cell?
Greco1899 commentedon Jul 8, 2022
+1. This would be really helpful!
Chipmunk91 commentedon Jul 22, 2022
This is going to be huge help!
rouzki commentedon Jul 22, 2022
The solution that I am using :
luchungi commentedon Jul 22, 2022
The other way is to use Alt+Click of the mouse on all areas you want to edit at the same time if Ctrl+Shift+L ends up selecting beyond parts which you wish to edit.
For the VS Code solution to this problem, I think we need the find/replace function to have the option of restricting it to the selected text instead of just confining it to the selected cell as the prior option can also easily achieve the selected cell option. Of course, having both options is even better.
rouzki commentedon Jul 22, 2022
If I want to restrict my selection I don't use the mouse (as it's not easy, and takes too much time), I simply select the occurrence then keep pressing Ctrl+D to select only the next occurrence.
lgonzalezsa commentedon Jul 27, 2022
I learned from https://stackoverflow.com/a/73109147/1729896 that using
F3enables the find and replace for the cell, just what I need, hope this helps others.CTRL-D also is a nice feature. Closing for now.
gjsjohnmurray commentedon Aug 3, 2022
See also #121218