如何使OmniPascal与FPC一起使用? [英] How to make OmniPascal work with FPC?
本文介绍了如何使OmniPascal与FPC一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经为Visual Studio代码安装了FreePascal编译器和OmniPascal扩展,但是代码完成不起作用.在手册中,您说的是我需要在用户设置中编写通往Delphi编译器的路径,但是关于FPC却什么也没说.
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.freePascalSourcePath
设置设置为包含FreePascal源的文件夹 - 将
omnipascal.defaultDevelopmentEnvironment
设置设置为FreePascal
- 重新启动Visual Studio代码.
- Set the
omnipascal.freePascalSourcePath
setting to the folder that contains the FreePascal sources - Set the
omnipascal.defaultDevelopmentEnvironment
setting toFreePascal
- Restart Visual Studio Code.
示例:
"omnipascal.freePascalSourcePath": "C:\\lazarus\\fpc"
"omnipascal.defaultDevelopmentEnvironment": "FreePascal"
这将指示OmniPascal语言服务器在该目录及其所有子树中递归查找Pascal单位(.pas
和.pp
文件).
This will instruct the OmniPascal language server to lookup Pascal units (.pas
and .pp
files) in that directory and all its subtrees recursively.
这篇关于如何使OmniPascal与FPC一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文