How to write backslash (with Alt + Shift + 7) in Xcode without comment?

How to write "\" in Xcode without commenting the entire line?

var name = "Kevin"
var returnValue = "Hi \(name)"

When I type a backslash using alt + shift + 7, it notices the entire line ...

//var returnValue = "Hello "
+4
source share
1 answer

I assume that you are using a keyboard layout in which you need to type Alt-Shift-7 to enter a backslash. (For example, this is not true for the US layout.)

, , Alt-Shift-7 ( ) "" > "" > "". Xcode , ( ), .

+4

Source: https://habr.com/ru/post/1569919/


All Articles