Karan
Karan

Reputation: 15094

Autocorrect in XCode

I am new to the XCode environment. Having had development experience with Eclipse & Visual Studio, I was looking for a auto-correct tool in Xcode. Unfortunately, I couldnt find one. Any idea if it exists or how to bring it up?

Example

myObject.newField = 2;

Xcode complains the fact that newField does not exist. In visual studio (with resharper) I could hit a shortcut and it would create the new field for me. Or perhaps, create a method that did not exist.

Thanks

Edit To clarify the question, I am trying to use the autocorrect tool as a means to create new vars and methods.

Upvotes: 0

Views: 992

Answers (2)

rob mayoff
rob mayoff

Reputation: 385500

Xcode does not have the feature you are describing. It won't offer to create a declaration when you use an undeclared variable or method.

Upvotes: 4

shabbirv
shabbirv

Reputation: 9098

Type in myObject. then press "esc" on your keyboard and you'll see a list of properties related to that object

Upvotes: 0

Related Questions