Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode/Mac: keyboard shortcut to type the "OR" sign "||" (double vertical bar)?

Each time I have to copy paste "||" from elsewhere when I want to type the double vertical bar of the OR sign.

Is there a keyboard shortcut to type it?

like image 803
Regis_AG Avatar asked Apr 11 '11 12:04

Regis_AG


People also ask

How do you make a double pipe symbol on a Mac?

Answer 50ace283ac670cd908000741. To type the sympol pipe “|” on Mac OS => Alt + Maj + L.

How do you type double brackets on a Mac?

⌥ alt + 6 : ]


2 Answers

This site lists the shortcut as Shift+Alt+L if you use a Mac keyboard. But the "pipe" symbol does actually exist on the Mac UK keyboard so can't you just press that key twice?

like image 155
andyb Avatar answered Oct 13 '22 00:10

andyb


That did not work for me either. But this one did:

Alt+ 7 with the Alt key on the right side of the keyboard or Ctrl + Alt + 7 with the Alt key on the left side

like image 39
Lilla Eli Avatar answered Oct 13 '22 00:10

Lilla Eli