Tool/software: Code Composer Studio
Half of the time when I copy something and paste over an variable which is defined somewhere else, CCS jumps to that reference where it is defined and it paste over that. It's as if me pasting it, tells the editor to find where the text I am replacing is defined and go replace it there. It basically jumps to that file and replaces it.
But it only does it some times
Like I have code as follow: (this is just a hypothetical piece of code for simplicity)
1) int myVariable;
2) int yourIVariable;
3) int myString;
4) myString=1;
Then I copy "your" and paste it over myString at 4), then it replaces myString at 3) to "your"
1) int myVariable;
2) int yourIVariable;
3) int your;
4) myString=1;
what I expected to happen is that myString at 4) should be replaced like follow:
1) int myVariable;
2) int yourIVariable;
3) int myString;
4) your=1;
if myString is defined in another file, even my global variables file, it will jump to that file and go paste it over that variable definition.
I find this issue annoying and dangerous, as it can mess things up unintentionally, so I need to find a way to disable that what is causing this.