我可以禁用Delphi IDE中的Insert键吗? [英] Can I disable the Insert key in the Delphi IDE?

查看:210
本文介绍了我可以禁用Delphi IDE中的Insert键吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现真的很烦人的是通过按插入键将Delphi编辑器变成输入模式,是否有一种在Delphi IDE中禁用此行为的方法?

Something I find really annoying is putting the Delphi editor into "type over mode" by pressing the Insert key, is there a way of disabling this behaviour in the Delphi IDE?

推荐答案

您可以为代码编辑器编写自己的键绑定,以重新映射击键。

You can write your own key binding for the code editor, to remap the keystroke.

有几个例子,这样做包括在Delphi本身。他们在您的Samples文件夹中;确切的位置取决于您的Delphi和Windows版本。例如,在Win7上的XE6中,请参阅

There are a couple of examples of doing so included with Delphi itself. They're in your Samples folder; the exact location depends on your Delphi and Windows versions. In XE6 on Win7, for instance, see


C:\Users\Public\Public Documents\Embarcadero\Studio \14.0\Samples\Object Pascal\VCL\ToolsAPI\Editor KeyBinding

"C:\Users\Public\Public Documents\Embarcadero\Studio\14.0\Samples\Object Pascal\VCL\ToolsAPI\Editor KeyBinding"

在XE5中, / p>

In XE5, it's in


C:\Users\Public\Documents\RAD Studio\12.0\Samples\Delphi\VCL\\ \\ ToolsAPI\Editor KeyBinding。

"C:\Users\Public\Documents\RAD Studio\12.0\Samples\Delphi\VCL\ToolsAPI\Editor KeyBinding".

在D2007中查看


C:\Users\Public\Documents\RAD Studio\5.0\Demos\DelphiWin32\VCLWin32\ToolsAPI\Editor KeyBinding。

"C:\Users\Public\Documents\RAD Studio\5.0\Demos\DelphiWin32\VCLWin32\ToolsAPI\Editor KeyBinding".

据说,Delphi代码编辑器中的 Ins 的行为与每个关键字的行为是一样的单文本编辑器我遇到过(包括像Notepad.exe那样简单的文本),回到当天的MS-DOS和Edit.exe。如果有人有机会使用您的IDE的副本,那么如果它不像标准的文本编辑器/

With that being said, the behavior of the Ins in the Delphi Code Editor is the same behavior that the key has in every single text editor I've ever encountered (including those simple ones like Notepad.exe), going back to the days of MS-DOS and Edit.exe. If there's ever a chance that someone else will use your copy of the IDE, you're going to really tick them off if it doesn't act like a standard text editor/

这篇关于我可以禁用Delphi IDE中的Insert键吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆