How to make OmniPascal work with FPC?

2019-07-21 04:49发布

I've installed both FreePascal compiler and OmniPascal extension for VisualStudio code, but code completion doesn't work. In the manual you are saying that I need to write the path to Delphi compiler int the user settings, but nothing is said about FPC.

标签: omnipascal
1条回答
爷、活的狠高调
2楼-- · 2019-07-21 05:09
  • Set the omnipascal.freePascalSourcePath setting to the folder that contains the FreePascal sources
  • Set the omnipascal.defaultDevelopmentEnvironment setting to FreePascal
  • Restart Visual Studio Code.

Example:

"omnipascal.freePascalSourcePath": "C:\\lazarus\\fpc"
"omnipascal.defaultDevelopmentEnvironment": "FreePascal"

This will instruct the OmniPascal language server to lookup Pascal units (.pas and .pp files) in that directory and all its subtrees recursively.

查看更多
登录 后发表回答