Xcode/Mac:键入“OR”符号“||”的键盘快捷键 (双竖线)?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5621173/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 03:52:48  来源:igfitidea点击:

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

xcodemacoskeyboard-shortcuts

提问by Regis_AG

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

每次我都要复制粘贴“||” 当我想输入 OR 符号的双竖线时,从其他地方。

Is there a keyboard shortcut to type it?

有键盘快捷键可以输入吗?

回答by andyb

This sitelists the shortcut as Shift+Alt+Lif 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?

本网站列出的快捷键Shift+ Alt+ L,如果你使用的是Mac键盘。但是“管道”符号确实存在于 Mac UK 键盘上,所以您不能按两次该键吗?

回答by Lilla Eli

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

这对我也不起作用。但是这个做到了:

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

Alt+7使用Alt键盘右侧的键或 Ctrl+ Alt+7使用Alt左侧的键

回答by Rohwedder

I have a Macbook with danish keyboard, and for me I use the Alt+i, to make the | operand.

我有一台带丹麦语键盘的 Macbook,对我来说,我使用Alt+ i, 来制作 | 操作数。

Hope it helps you

希望对你有帮助

回答by nashCode

In my keyboard works with: ALT+ 1

在我的键盘上使用:ALT+1

回答by Mert Buran

It is Shift + Alt + "I" for Turkish QWERTY users. Shift + Alt + "L" did not work for me, even with U.S. input source.

对于土耳其语 QWERTY 用户,它是 Shift + Alt + "I"。Shift + Alt + "L" 对我不起作用,即使使用美国输入源也是如此。

回答by LAOMUSIC ARTS

For macs with German keyboards, press:

对于使用德语键盘的 Mac,请按:

ALT + 7

ALT + 7

Hope this helps!

希望这可以帮助!

回答by Damian Green

I am using a UK external keyboard and I had to use Shift~.

我使用的是英国外接键盘,我不得不使用Shift~.

The ~key is next to carriage return and also has the #symbol

~键旁边回车,也有#象征

回答by J.W

This worked for me: CTRL+ Alt+ <

这对我来说有效: CTRL+ Alt+<

回答by Martin De Simone

None of this worked for me, my solution was SHIFT+ /

这些都不适合我,我的解决方案是SHIFT+/

回答by user3263514

Use right alt+ (. The key is to the right of the ?key on my keyboard.

使用right alt+ (?键在我键盘上的键的右侧。