2017-02-12 45 views
2

當我使用Netbeans在java中編程時,通過按「。」可以看到可用的功能。之後變量。 例如: string s; s。 (charAt(),concat(),contains()等)如何檢查代碼塊中的可用功能?

有沒有辦法在代碼塊中做同樣的事情?

+0

[代碼完成插件,可能是它的工作原理(http://wiki.codeblocks.org/index.php/Code_Completion_plugin) –

+0

沒有,我有但它不顯示可用的功能,一個例子是如果我輸入「。」。在netbeans中的任何字符串之後,它將顯示可用函數的列表(.concat(),.charAt等) – fernando

+0

您使用的是什麼激勵? –

回答

2

我正在使用'codeblocks-16.01',並通過按「。」自動給出可用功能列表。變量之後。如果沒有自動顯示可用功能列表,您也可以使用'Ctrl + Space'鍵。請檢查附件的截圖,並在'Windows 8.1'上爲我工作。

更新:確保已啓用「代碼完成」選項。

設置 - >編輯 - >編輯器設置 - >代碼完成

enter image description here

1


enter image description here


還要確保:
設置>編輯>代碼完成

enter image description here


如果仍不能主站點
對插件的工作搜索,如果你是像UNIX這樣的類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 

並安裝你想要什麼

相關問題