Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
This post was edited and submitted for review 2 years ago and failed to reopen the post:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
您要处理的差异有多种原因。一个是,操作系统具有不同的钥匙夹甚至键盘布局,因此跨平台的本机应用程序(或试图感觉到本地的跨平台应用程序)将不可避免地在不同的系统上具有不同的快捷方式。 CTRL与CMD的起动器。最重要的是,您正在使用不同的应用程序,这些应用程序除了基本的剪切/粘贴/撤消/等,无论如何都具有不同的快捷方式。
从那里,您可以探索几条道路。
一条道路是在系统级别完全重新启动键盘。在两个平台上都有有关此程序的程序,如果您在所有系统上使用相同的外部键盘,则可能会起作用。
另一条路是在申请级上进行重新映射。寻找配置选项或第三方扩展。
另一条路是选择一个忽略平台约定的单一应用程序。从技术上讲,VIM和Emacs符合该法案,因为它们已经生活在自己的气泡中数十年了,但是从成熟的GUI IDES转换为TUI编辑是一个挑战,需要大量的努力学习和学习。这两个都不是为了成为IDE的真正设计,因此,在走这条路之前,我建议您对此进行漫长的思考。
fwiw,我已经将VIM用作主要驱动程序已有十多年了,但是我不将其视为IDE,因为a)我知道,无论您多么难以掩饰它,都不是一个人,b)无论如何我都不需要一个。 YMMV。
The disparity you are dealing with has multiple causes. One is that operating systems have different keybindings and even keyboard layouts so cross-platform native applications—or cross-platform applications that try to feel native—will inevitably have different shortcuts on different systems. Ctrl versus Cmd for starters. On top of that, you are using different applications which, beyond the basic cut/paste/undo/etc., have different shortcuts anyway.
From there, you can explore a few roads.
One road is to remap your keyboard entirely at the system level. There are programs for that on both platforms and it might work if you use the same external keyboard on all systems.
Another road is to do that remapping at the application level. Look for configuration options or third-party extensions.
And another road is to choose a single application that ignores platform conventions. Technically, Vim and Emacs fit the bill because they have been living in their own bubbles for decades but switching from full-fledged GUI IDEs to TUI editors is a hell of a challenge that will require a lot of effort learning, and unlearning. Neither are really designed for being IDEs so, before taking that road, I would suggest you think long and hard about it.
FWIW, I have been using Vim as my main driver for a little more than a decade but I don't treat it as an IDE because a) I know full well it can't be one no matter how hard you try to disguise it, and b) I didn't need one for my daily work anyway. YMMV.