Author Topic: Limit search/replace to just 1 C function.  (Read 2687 times)

rowbearto

  • Senior Community Member
  • Posts: 2368
  • Hero Points: 132
Limit search/replace to just 1 C function.
« on: October 12, 2013, 02:54:11 AM »
I'd like a way to limit search/replace to just 1 C function.  For example, if different functions in the same file have the same local variable inside, but I only want to change the variable name in 1 function, I could put my cursor in that function and then choose in the search/replace dialog to limit the search to inside the function.

Or, we could limit the scope of the search/replace to inside any curly braces  {}

Graeme

  • Senior Community Member
  • Posts: 2837
  • Hero Points: 348
Re: Limit search/replace to just 1 C function.
« Reply #1 on: October 12, 2013, 10:24:03 AM »
I'd like a way to limit search/replace to just 1 C function.  For example, if different functions in the same file have the same local variable inside, but I only want to change the variable name in 1 function, I could put my cursor in that function and then choose in the search/replace dialog to limit the search to inside the function.

Or, we could limit the scope of the search/replace to inside any curly braces  {}

Slick can already do it.  In the search / replace dialog, select Lookin: current procedure or Lookin: current selection