Home Download Buy Blog Forum Support

Edit All Occurrences of String in Scope

Edit All Occurrences of String in Scope

Postby itaiferber on Wed Jul 11, 2012 1:10 am

I posted this on the UserEcho site, but I thought it would be worth reposting here to spread the idea a bit:
Xcode (the Objective-C IDE) has a great feature where you can simultaneously edit all occurrences of a string at once within a given scope. This is really handy when renaming method parameters or variable names — it saves a lot of time, and prevents any of the mishaps that Find and Replace and introduce. This would be a great addition to Sublime Text 2...

http://sublimetext.userecho.com/topic/117733-edit-all-occurrences-of-string-in-scope/

A simple feature, but one I sorely miss. Would be great either as a built-in feature or as a plugin.
itaiferber
 
Posts: 15
Joined: Mon Apr 16, 2012 1:04 am

Re: Edit All Occurrences of String in Scope

Postby cnjohnson on Sat Jul 14, 2012 8:20 pm

+1
cnjohnson
 
Posts: 1
Joined: Sat Jul 14, 2012 8:15 pm

Re: Edit All Occurrences of String in Scope

Postby bretfort on Thu Dec 13, 2012 1:23 pm

Select a string, and keep pressing CMD+D to select its occurences, now you can rename it.
bretfort
 
Posts: 1
Joined: Thu Dec 13, 2012 1:21 pm

Re: Edit All Occurrences of String in Scope

Postby agibsonsw on Thu Dec 13, 2012 3:17 pm

bretfort wrote:Select a string, and keep pressing CMD+D to select its occurences, now you can rename it.

You can also use Ctrl-k,Ctrl-d to skip an occurrence.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests