Delphi。如何阻止编辑器自动插入评论?
Delphi. How to stop editor from autoinserting comments?
在 Delphi 10.4 Sydney 中,如果您 select 评论,例如 //xxx
然后按键盘上的 {
,编辑器将自动替换select编辑 text/comment 与 {//xxx}
。
预期的行为是屏幕上只有 {
,而不是 {//xxx}
。
如何阻止这种行为?
我禁用了我所有的 IDE 专家,所以这一定来自 IDE 本身。
这是与评论无关的一般功能。
如果您有任何 selected 并键入左括号,如 (
或 {
,您将自动用此括号将 selection 括起来。例如,如果您 select cat
并键入 (
,您将得到 (cat)
.
当 IDE 帮助您使用 if
语句时,这可能会特别烦人:如果您键入 if
,然后输入 space,IDE 自动插入 if True then
和 True
selected。如果您随后键入 (
(例如,如果您想键入 (a = 1) and (b = 4)
),您将得到 if (True) then
,而不是 if ( then
。
要禁用此功能,请转至工具、选项、用户界面、编辑器选项、按键映射、增强模块和deselect 智能环绕键:
在 Delphi 10.4 Sydney 中,如果您 select 评论,例如 //xxx
然后按键盘上的 {
,编辑器将自动替换select编辑 text/comment 与 {//xxx}
。
预期的行为是屏幕上只有 {
,而不是 {//xxx}
。
如何阻止这种行为?
我禁用了我所有的 IDE 专家,所以这一定来自 IDE 本身。
这是与评论无关的一般功能。
如果您有任何 selected 并键入左括号,如 (
或 {
,您将自动用此括号将 selection 括起来。例如,如果您 select cat
并键入 (
,您将得到 (cat)
.
当 IDE 帮助您使用 if
语句时,这可能会特别烦人:如果您键入 if
,然后输入 space,IDE 自动插入 if True then
和 True
selected。如果您随后键入 (
(例如,如果您想键入 (a = 1) and (b = 4)
),您将得到 if (True) then
,而不是 if ( then
。
要禁用此功能,请转至工具、选项、用户界面、编辑器选项、按键映射、增强模块和deselect 智能环绕键: