Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you use replace in Spyder?

Well, you start with cursor on your text, Ctrl+H and type replacement. But surprisingly i was not able to found any shorcut for actual replace or replace all action, rather than tabbing 5(!) times or moving my hand for a mouse.

Straightforward enter does nothing, tabbing to replace button and entering replaces, but throws me into the editor. VisualStudio-like Alt+A does nothing.

Am i missing something in spyder shortcuts?

like image 379
Бочкарев Михаил Avatar asked Feb 26 '16 22:02

Бочкарев Михаил


People also ask

How do I add a new cell to Spyder?

Similar to Jupyter notebook, Spyder IDE allows you to create cells. To create a cell, simply put #%% in the script. Each #%% will signal generation of a new cell. To run a cell, press shift+enter while in focus of a cell.


2 Answers

The shortcut for replace is Ctrl + R.

like image 109
Niels Hameleers Avatar answered Oct 11 '22 20:10

Niels Hameleers


I have the same issue with Spyder, I don't know why this has not been implemented in the editor.

The work around I currently have for multiple replace is to :

  1. Copy the replacement term to the clipboard

  2. Search(Find/Replace) for the term to replace

  3. Use F3 to select the next term

  4. Use paste Ctrl+V to replace it

  5. Back to step [3] to find the next term

Hope this helps!

EDIT:

According to Spyder dev @carlos below. Since v3.2 This has now been implemented and you may just press and move to the next term.

like image 21
C Mars Avatar answered Oct 11 '22 21:10

C Mars