Skip to content
Advertisement

How to find and replace text in a single cell when using Jupyter extension inside Visual Studio Code

As the title says, how to find and replace text inside a single jupyter cell when using the jupyter extension in Visual Studio Code? I am familiar with ctr+h but that will replace all the occurrences in the entire jupyter notebook file. This is a really important feature for me, as I am using it a lot in jupyter on the browser.

Advertisement

Answer

You can select the first occurrence and then use Ctrl+D. It will select the next occurence in the cell. Repeat that until you go back to the first ocurrence and then type the new value. It will replace all the values your circled on.

In case you have changed that keyboard shortcut or if it is different you can find the correct one:

shortcut

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement