How do install OmniPascal into vscode

我是研究僧i 提交于 2019-12-03 17:22:37

Except that seems to be wrong; it complains that it shouldn't be an = (equals), but a : (colon)

Oh, obviously there's an error in the documentation. This will be fixed with the next release. Thanks. Of course it should be a colon since it is an entry in a JSON file.

But what should the path be?

The entry objectpascal.delphiInstallationPath should point to the path where Delphi is installed. It doesn't matter whether you define the source subdirectory or not. The path is internally used to find Delphi units recursively. As all .pas files are located in the source folder the lookup is slightly faster when the entry looks like this:

"objectpascal.delphiInstallationPath": "C:\\Program Files (x86)\\Embarcadero\\Studio\\16.0\\Source"

Free Pascal users should point to the FPC directory

Sample:

"objectpascal.delphiInstallationPath": "C:\\lazarus\\fpc"

I only ask because neither path seems to enable suggestions

The syntax highlighting in your screenshot seems to come from another Pascal plugin for Visual Studio Code. When the OmniPascal plugin is active in a .pas file then the current file type is "ObjectPascal". You see it in the bottom right corner next to the smiling feedback button:

When the current file type is "Pascal" or anything else then the wrong plugin is active. Click on the file type and change it to "ObjectPascal". Now you should get code completion, quick infos and more.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!