我已经为 VisualStudio 代码安装了 FreePascal 编译器和 OmniPascal 扩展,但代码完成不起作用。在手册中你说我需要在用户设置中写入Delphi编译器的路径,但没有提到FPC。
- Set the
omnipascal.freePascalSourcePath
设置为包含 FreePascal 源代码的文件夹
- Set the
omnipascal.defaultDevelopmentEnvironment
设置为FreePascal
- 重新启动 Visual Studio 代码。
Example:
"omnipascal.freePascalSourcePath": "C:\\lazarus\\fpc"
"omnipascal.defaultDevelopmentEnvironment": "FreePascal"
这将指示 OmniPascal 语言服务器查找 Pascal 单位(.pas
and .pp
文件)在该目录及其所有子树中递归地进行。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)