简体   繁体   English

代码完成不适用于 Delphi Tokyo

[英]Code Completion not working with Delphi Tokyo

I have installed new Tokyo Delphi.我已经安装了新的东京德尔福。 I believe there is a bug with the Tokyo IDE.我相信东京 IDE 存在错误。 Code completion is not working properly.代码补全工作不正常。 What you can try is TQuery component.您可以尝试的是 TQuery 组件。 Maybe because it is depreciated but it should work.也许是因为它折旧了,但它应该可以工作。 Also code completion sometimes only works with Uppercase chars after dot.此外,代码完成有时仅适用于点后的大写字符。

  q := TQuery.Create(nil);
  try
    q.SQL.Text := '...';
    q.FieldByName()
  finally
    q.Free;
  end;

When I write this line q.FieldByName after dot "."当我在点“.”之后写这一行q.FieldByName I type "F", I see codes in scroll but if I type "i" after "F", the code completion becomes empty and all is lost.我输入“F”,我在滚动中看到代码,但是如果我在“F”之后输入“i”,则代码补全变为空并且所有内容都丢失了。

在此处输入图片说明

just find & replace bugged sybols: "LF CR" with "CR LF"只需找到并替换有问题的符号:“LF CR”与“CR LF”

:} :}

Sometimes the IDE has problems with autocompletion.有时 IDE 会出现自动完成问题。

Did you installed last release of Delphi 10.2.1 and its first patch ?您是否安装了 Delphi 10.2.1 的最新版本及其第一个补丁?

If you are in debug mode or if there is an erroe in your code, the completion don't work.如果您处于调试模式或您的代码中存在错误,则补全不起作用。 Try saving your files & project and compiling it.尝试保存您的文件和项目并编译它。

You can also use Ctrl+Space to force autocompletion popup.您还可以使用 Ctrl+Space 强制自动完成弹出窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM