Re: Tweak auto-completion
Re: Tweak auto-completion
- Subject: Re: Tweak auto-completion
- From: Thomas CLEMENT <email@hidden>
- Date: Sat, 28 Apr 2012 11:27:19 +0200
Thanks for the workaround. If I understand correctly, the problem is that you now need to type "elseif" instead of "else if". It doesn't practical to do that kind of thing for every statement in the language (for, while, switch, if, else, ...).
Being able to change this behavior would seem to be a pretty basic functionality for any IDE :/
Thomas
On 27 avr. 2012, at 00:55, Eeyore <email@hidden> wrote:
> Here's a possible workaround, not perfect, but it works for me.
>
> Take the template of the code you want to use for your "else if" statement and type it into the editor, e.g., mine is the following:
>
> else if (<#condition#>)
> {
> <#statements#>
> }<#end#>
>
>
> select this text and drag it to the Code Snippets Library (View>Utilities>Show Code Snippet Library).
>
> Give it a Title and Completion Shortcut (my shortcut is "elseif"). Now typing elseif and completing should generate the else if block in the format you set up.
>
> Aaron
>
> On Apr 26, 2012, at 2:46 PM, Doug Hill wrote:
>
>> I see the Xcode Defaults documentation still exists in the Xcode 4.3.1 doc set:
>>
>> file:///Users/username/Library/Developer/Shared/Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.4_3.docset/Contents/Resources/Documents/index.html#documentation/DeveloperTools/Reference/XcodeUserDefaultRef/100-Xcode_User_Defaults/UserDefaultRef.html
>>
>> However, adding a defaults entry doesn't seem to have any effect on the Xcode runtime behavior. Searching through the xcode-users archives, I see references a while back to people having the same problem. Can someone who has knowledge about this comment on whether the user defaults really have no effect? Or if there's another way to change the editor behavior?
>>
>> Thanks so much!
>>
>> Doug Hill
>> Schematic Labs, Inc.
>> http://www.soundtracking.com/
>>
>>
>> On Apr 26, 2012, at 1:15 PM, Rick Mann wrote:
>>
>>> I wish you could do this. I haven't found a way.
>>>
>>> On Apr 26, 2012, at 12:44 , Thomas Clement wrote:
>>>
>>>> Hello list,
>>>>
>>>> Is it possible to tweak the "if"/"else if" auto-completion to have opening "{" on new lines?
>>>>
>>>>> else if
>>>>> {
>>>>> }
>>>>
>>>> instead of:
>>>>
>>>>> else if {
>>>>> }
>>>>
>>>> I find myself spending lots of time rewritting the auto-completed code.
>>>> I remember being able to change that in Xcode 3, what about Xcode 4?
>>>>
>>>>
>>>> Thomas
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden