Xcode 6 cannot split string with //

Using Xcode 6.x, the comment command COMMAND+ /allows you to comment and uncomment lines of code. But if the line contains a line with "//", like the URL, COMMAND+ /just adds more comments.

var test = "http://test"

COMMAND+ /will comment on the line. (Correctly)

//     var test = "http://test"

If you COMMAND+ again /, you will get more comments.

////   var test = "http://test"

What's happening? Is there a fix for this?

+4
source share
1 answer

This is an Xcode error.

It has been fixed with Xcode 6.3.

0
source

All Articles