tags:

views:

77

answers:

1

When commenting out a piece of code in xcode

//code

If you click comment again it adds more comments

////code

does anyone know how to prevent this?

A: 

When you "click comment again" you have to have the // selected (and optionally the rest of the line).

Usually when you comment the first time Xcode will select the text such that pressing the comment shortcut again will uncomment.

Is nothing selected after you comment the first time?

Jon-Eric