Search code examples
visual-studio-codereplacejupyter-notebook

Why is find and replace in Notebooks in VS Code different than in text documents? Are there ways to make them more similar?


The search/replace tool in VS Code Jupyter Notebooks is different from it with other type of files. First it doesn't come with the shortcut such as alt+w for "match whole word". Second, it always start from the first occurrence in the result list instead of the current position. Third, it doesn't come with "Find in selection" option, which makes the "replace all" function almost un-useful. Why is that and is there way to fix it?


Solution

  • Things are different because the implementation is not exactly the same as for find and replace for text documents as for Jupyter Notebook editors (see also custom editor API).

    More readings for the curious