简体   繁体   English

公司模式未完成预处理器语法

[英]company-mode doesn't complete preprocessor syntax

I've followed the Tuhdo's tutorial, but I've got a problem with company-mode: it seems it doesn't auto complete preprocessor reserved words, as displayed in these two images no candidates are found: 我遵循了Tuhdo的教程,但是我遇到了公司模式的问题:看来它不能自动完成预处理器保留字,如以下两个图所示,没有找到候选者: 包括 限定

But, on the contrary, this image shows that company mode is active and working: 但是,相反,此图像显示公司模式处于活动状态并且正在工作: STDIO

What's wrong? 怎么了? Thanks in advance. 提前致谢。

hi problem same for me 嗨,问题对我一样

Basically company-keywords does not include preprocessor directives. 基本上,公司关键字不包含预处理程序指令。

So I've just wrote this backend that is triggered when you type #+ a letter. 因此,我刚刚编写了在您输入#+字母时触发的后端。

https://github.com/fredericfrances/company-c-preprocessor https://github.com/fredericfrances/company-c-preprocessor

Installation and setup is pretty easy, I did'nt create melpa package yet. 安装和设置非常简单,我还没有创建melpa软件包。

(require 'company-c-preprocessor) (add-to-list 'company-backends 'company-c-preprocessor) (需要'company-c-preprocessor)(添加到列表'company-backends'company-c-preprocessor)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM