User forums > Help
CodeBlocks Method Code completion
gtg:
Hello, I have the following problem. When i try to use some method from the "string" variable the intellisense/SmartSence is not showing the available methods. The code is compiled fine, but it's really frustrating to not have helping intellisense. The interesting thing is that if i disable SmartSence, the available methods are showing, plus alot other option that are not useful. I'm using Linux, ubuntu 16.04, Codeblocks version 16.01 - wx2.8.12 64bit, gnu gcc compiler. Some help will be appreciated. :)
yvesdm3000:
What extension has your filename ?
Yves
gtg:
the extention of the file is .cpp
oBFusCATed:
Can you post a minimal example?
gtg:
--- Code: ---#include <iostream>
#include <string>
using namespace std;
int main()
{
string str = "String";
int strSize = str.size();
cout << "String Size is " << strSize << endl;
return 0;
}
--- End code ---
Here is the code. It is compiled and works properly (it outputs the size of the string). The problem is that after the str (str is the string variable/object) when I write "." (the dot) intellisense/SmartSence is no't showing the possible methods. Btw thx for the attention. guys.
Navigation
[0] Message Index
[#] Next page
Go to full version