Differences
This shows you the differences between two versions of the page.
docs:programming:xcode:comment_selection [2007/06/14 11:45] – created billh | docs:programming:xcode:comment_selection [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Xcode Comment Selection ====== | ||
+ | I still can't find any built in function to comment/ | ||
+ | * open Xcode preferences | ||
+ | * go to Key Bindings | ||
+ | * Duplicate a Key Binding Set if you don't already have a custom set | ||
+ | * expand the Action: Edit -> Insert Text Macro -> C -> Comment Selection | ||
+ | * double click in the Key column | ||
+ | * set the key combination of your choice (I suggest Command-/ | ||
+ | * click Apply/OK | ||
+ | * now when you select text, press Command-/ to comment the selection using /* and */ | ||
+ | * there is no automated way to uncomment a selection that I know of |