如何检查代码块中的可用功能?

时间:2017-02-12 07:49:03

标签: c++ codeblocks

当我使用Netbeans在java中编程时,我可以通过按"来看到可用的功能。"变量之后。 例如: 字符串s; 秒。 (的charAt(),CONCAT(),包含(),等等)

有没有办法在代码块中做同样的事情?

2 个答案:

答案 0 :(得分:2)

我正在使用' codeblocks-16.01' ,并通过按"自动向我提供可用的功能列表。"变量之后。如果未自动显示可用功能列表,您还可以使用' Ctrl + Space' 键。请使用' Windows 8.1' 查看附带的屏幕截图及其正常工作。

更新:确保启用'代码完成' 选项。

  

设置 - >编辑 - >编辑器设置 - >代码完成

enter image description here

答案 1 :(得分:1)

enter image description here

还要确保:
设置>编辑>代码完成

enter image description here

如果仍然无法在主站点上搜索插件
如果您使用像Ubuntu这样类似UNIX的计算机,则可以
sudo apt-cache search codeblocks

libpath-dispatcher-perl - flexible and extensible dispatcher module
libcodeblocks0 - Code::Blocks shared libraries
codeblocks - Code::Blocks integrated development environment (IDE)
codeblocks-dbg - Code::Blocks debugging libraries
libwxsmithlib0 - wxSmith shared library (Code::Blocks plugin for RAD GUI editing)
codeblocks-contrib - contrib plugins for Code::Blocks IDE
codeblocks-dev - Code::Blocks development libraries (SDK)
codeblocks-contrib-dbg - Debugging libraries for the Code::Blocks contrib plugins
wxsmith-dev - wxSmith development files (libraries)
codeblocks-common - common files for Code::Blocks IDE
codeblocks-contrib-common - common files for the contrib plugins for Code::Blocks IDE
codeblocks-headers - Code::Blocks development headers (SDK)
wxsmith-headers - wxSmith development files (headers)
codeblocks-wxcontrib-headers - Code::Blocks development headers for wxContribItems
codeblocks-libwxcontrib0 - Code::Blocks shared libraries for wxContribItems
codeblocks-wxcontrib-dev - Code::Blocks development libraries for wxContribItems

并安装您想要的内容