Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to quickly edit determinate part of code inside different similar lines
    primarykey
    data
    text
    <p>I have this problem I'm adjusting a code I've made I have a structure like this:</p> <pre><code>Apple1 = Fruit("ss","ss",[0.1,0.4],'w') PineApple = Fruit("ss","ss",[0.315,0.4],'w') Banana = Fruit("ss","ss",[0.315,0.280],'w') ... ... </code></pre> <p>Instead of <code>"ss"</code>I would like to type further information like <code>"Golden Delicious"</code>. For the moment I'm simply deleting <code>"ss"</code>clicking over it and then replacing it with the information I want to insert. I'm sure there is a faster way to do it, I've tried something with VIM macros but I can't figure out how to "Raw input" my data. I've try simply to substitute it with Spyder, but is slow because I have to click substitute every time, with VIM for what I've try is the same. Then I wonder how insert something else after <code>'w'</code>... This is an example of an final output only to understand better the question :</p> <pre><code> Apple1 = Fruit("Golden Delicous","red",[0.1,0.4],'w') PineApple = Fruit("Ananas comosus","green",[0.315,0.4],'w') Banana = Fruit(" Cavendish banana","yellow",[0.315,0.280],'w') ... ... </code></pre> <p>I reformulate the question: which is the faster way to change <code>"ss"</code>, for the moment I'm clicking over "<code>ss</code>" delate "ss" and write e.g "Golden Delicous" but is very slow. What I would like is that for <strong>every single</strong> <code>ss</code> the editor ask me to insert something to replace the single <code>ss</code>.</p> <p>e.g. first <code>ss</code>in the fist line: I want to replace it typing something else e.g. "Golden Delicous" second <code>ss</code>in the first line I want to replace it typing somethingelse e.g. <code>red</code>. First <code>ss</code>in the second line I want to replace it with s.e. e.g. <code>Ananas comosus</code>second <code>ss</code>in the second line I want to replace with s.e. e.g. <code>green</code> and so on.</p> <p>I'm sure there is an answer for this somewhere but I can't find it! Please if you down vote explain me why so I can improve it!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload