This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSv6 refactor: How to add structure name to variable after making a variable a structure member.

Guru 20035 points

Hello,

I added a group of static variables to a structure type.  Is there a way to easily add the structure name to the variables by using refactor?

Stephen

  • Stephen,

    If I understood correctly, you originally had a variable "var" and afterwards moved its definition inside a structure "str". Now you want to rename all instances of "var" with "str.var", right?

    If you right click on the variable name "var" and select Refactor --> Rename does that work?

    If not, I don't think this can be done easily.

    Regards,
    Rafael
  • That's correct.   When I enter, for example, str.var in the New Name dialog, a " 'str.var' is not a valid identifier" error shows  up in the dialog box  

    I guess that type of refactoring doesn't work.

    Thanks.

    Stephen