Re: Tweak auto-completion
Re: Tweak auto-completion
- Subject: Re: Tweak auto-completion
- From: Eeyore <email@hidden>
- Date: Thu, 26 Apr 2012 15:55:59 -0700
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