How to make OmniPascal work with FPC?

帅比萌擦擦* 提交于 2019-12-12 18:33:37

问题


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.


回答1:


  • 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.



来源:https://stackoverflow.com/questions/39957074/how-to-make-omnipascal-work-with-fpc

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