编程的首选键盘布局

发布于 2024-10-01 15:10:02 字数 1431 浏览 9 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

耀眼的星火 2024-10-08 15:10:02

类似 C 的编程语言通过使用在大多数其他键盘布局上难以触及的符号来自豪地展示其美国传统。我求助于 US International,它允许我输入 {} []\ 不会折断我的手指,但同时仍然能够输入像 ä、ö、ü 和 ß 这样的字符,我不想用我的母语放弃这些字符(其他一些使用美国布局这样做,每当他们为了方便而牺牲拼写时,我都会感到身体上的疼痛)。

德沃夏克至少看起来足够好。然而,更改布局的成本可能比另一个 QWERT[YZ] 布局高得多。

C-like programming languages show their US-American heritage proudly by using symbols that are awkward to reach on most other keyboard layouts. I've resorted to US International which allows me to type {}[]\ without breaking my fingers but at the same time still being able to type characters like ä, ö, ü and ß which I don't want to give up in my native tongue (some others using a US layout do and I feel physical pain every time spelling is sacrificed for convenience on their part).

Dvorak at least looks good enough for that. However, the costs for changing the layout there are likely much higher than to another QWERT[YZ] layout.

深居我梦 2024-10-08 15:10:02

披露:我有偏见。 :-)

顺便说一句,我也来自挪威!美国 Qwerty 比挪威 Qwerty 更适合编程。尽管如此,它还是拉伤了右小指,并且手和手指的交替也很糟糕。

十五年前,我对自己说:必须有一种比这更好的方法来在键盘上放置用于编程的符号。因此我创建了Programmer Dvorak 布局,这是具体

作为字母键的基础,我选择了(经典的)德沃夏克布局,我认为这是最好的、经过科学记录的英语布局。即使在编程时,您输入的大部分内容也是散文(关键字、函数名称、注释、文档)。

对我来说,我认为这是一个巨大的成功:我不再有任何手指肌肉疲劳,而且我打字的速度甚至比以前更快。

但是,对于具有固定数量位置的键盘,需要进行一些权衡:如果给一个键一个新的位置,那么之前占据该位置的那个键也必须被移动。诀窍在于使获得的优势大于劣势。

我所做的主要是将数字键降级为切换状态,将北欧字符降级为组合字符。如果您主要使用母语书写,那么这可能不适合您。

如果您想自学德沃夏克,那么请准备好经历三到六个月的缓慢打字过渡期。我在写论文的时候就这么做了。

Disclosure: I am biased. :-)

Incidentally, I'm from Norway too! US Qwerty is better for programming than Norwegian Qwerty. Still, it strains the right pinky and has bad hand and finger alternation.

Fifteen years ago I said to myself: There has to be a better way to place the symbols that are used for programming on the keyboard than this. And thus I created the Programmer Dvorak layout, which is specifically designed to make it easier to type the parenthetical symbols commonly used in programmming languages such as Clojure and C#.

As a base for the alphabetical keys I chose the (classic) Dvorak layout, which I consider the best, scientifically documented layout for English. Even when programming, most of what you type is prose (keywords, function names, comments, documentation).

For me, I consider it a great success: I have no longer any finger muscle fatigue, and I type as quickly if not faster than before.

But, a keyboard having a fixed number of positions, there are some tradeoffs to be made: If one key is given a new place, then the one that previously occupied that location must also be moved. The trick is in making the advantages gained greater than the disadvantages.

The main one I did was to demote the number keys to shift status, and the nordic characters to composed ones. If you predominantly write your mother tongue, then this may not suit you.

If you want to teach yourself Dvorak, then be prepared for a transition period of three to six months of really slow typing. I did it when writing my thesis.

御弟哥哥 2024-10-08 15:10:02

还可以选择使用 Microsoft 的键盘布局创建器来根据您的需求调整布局。当然,一个小问题是它不会使物理按键上的标题移动。为此,您需要极其昂贵的 Optimus Maximus 键盘。 ;)

There's also the option of adapting the layout to your needs with Microsoft's Keyboard Layout Creator. A slight problem with that of course is that it won't make the captions on the physical keys move. For that you'll need the outrageously expensive Optimus Maximus keyboard. ;)

凹づ凸ル 2024-10-08 15:10:02

我打算推荐 DVORAK、程序员 DVORAK,甚至 挪威 DVORAK 布局,但似乎达到这些大括号和其他符号仍然不太理想。

Sondrizzle,问题不是因为你必须扭转右手才能使用 AltGr 吗?如果是这样,您是否找到了带有两个 AltGr 键(一左一右)的键盘?将大写锁定键映射到 AltGr 怎么样?感觉这可能是您最好的即时解决方案。

I was going to recommend DVORAK, Programmer DVORAK, or even Norwegian DVORAK layout, but it seems reaching for those braces and other symbols will still be less than ideal.

Sondrizzle, isn't the problem due to the fact that you have to twist your right hand for the AltGr? If so, have you sought out a keyboard with two AltGr keys, one on the left and one on the right? How about mapping your caps-lock key to AltGr? That feels like it may be your best immediate solution.

甜味超标? 2024-10-08 15:10:02

我一直在学习美国语言和我的母语(塞尔维亚语)布局并交替使用它们。我将 CapsLock 映射为更改布局的按键,操作系统会记住哪个应用程序在哪个应用程序中处于活动状态,因此我不必一直切换它们:在 Firefox 中,大部分时间是塞尔维亚语,而在终端、NetBeans 中等等,一直都是美国。没有定制的布局,没有尴尬的组合键来拉出基本布局中没有的字符。

我从未考虑过学习 Dvorak 来编码 - 我倾向于使用简洁的编程语言。 ;)

I have, throughout time, learned both US and my native language (Serbian) layouts and use them alternately. I mapped CapsLock as a key to change the layout, and OS remembers which one is active in which application, so I don't have to switch them all the time: in Firefox it is Serbian most of the time, while in Terminal, NetBeans etc. it is US all the time. No custom-made layouts, no awkward key combinations to pull off characters not in the basic layout.

I never considered learning Dvorak for coding - I tend to use succint programming languages instead. ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文