Re: Tweak auto-completion
Re: Tweak auto-completion
- Subject: Re: Tweak auto-completion
- From: Thomas Clement <email@hidden>
- Date: Sat, 28 Apr 2012 15:56:04 +0200
Ok then it is probably be worth doing it. That should save me time in the end.
Thanks!
Thomas
On Apr 28, 2012, at 3:06 PM, Eeyore wrote:
> It isn't as bad as it seems, my trigger for "for" is "for", my trigger for "while" is. "while", etc. The trigger "elseif" distinguishes it from an else clause. Still, it would be nice to have Xcode 3 styling options (e.g., telling it to use a return to separate a control word from its opening brace) that would be set once and then applied to all flow-control constructs.
>
> Aaron
>
> On Apr 28, 2012, at 2:27 AM, Thomas CLEMENT <email@hidden> wrote:
>
>> 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