Xcode 4: snippet functionality regressions

Originator:jens.ayton
Number:rdar://9192757 Date Originated:2011-03-26
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 4.0.1
Classification:UI/Usability Reproducible:Always
 
Summary:
In Xcode 3, text macros can contain variables which are expanded, such as $(DATE) and $(PROJECTNAME). Also, by virtue of being in a menu, they can have keyboard shortcuts assigned to them.

Steps to Reproduce:
* Create a new snippet with the text "-- $(USERNAME) $(DATE)".
* Attempt to assign a keyboard shortcut to it.
* Use the snippet in text.

Expected Results:
* It should be possible to assign a keyboard shortcut – for example, by entering a modifier-key combination instead of a string in the Completion Shortcut field.
* A string containing your user name and the current date should be inserted.

Actual Results:
* There is no apparent way to assign a key combination. (In particular, the Completion Shortcut field only takes regular text input.)
* The literal text of the snippet is inserted without expansion.

Regression:
Equivalent functionality exists in Xcode 3.2.6.

Notes:
To the best of my knowledge, the supported variables in Xcode 3 are:
DATE
FILEBASENAME
FILEBASENAMEASIDENTIFIER
FILEBASENAMEASXML
FILEEXTENSION
FILENAME
FULLUSERNAME
ORGANIZATIONNAME
PROJECTNAME
PROJECTNAMEASIDENTIFIER
PROJECTNAMEASXML
TIME
USERNAME
UUID
UUIDASIDENTIFIER
YEAR

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!