SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: Jeremy on April 05, 2011, 03:27:21 PM

Title: C++/STL symbol completion?
Post by: Jeremy on April 05, 2011, 03:27:21 PM
I use C/C++ as well as some STL containers, etc.  Is there any way to get slickedit to auto-complete functions in these languages/containers easily?

For example:
std::string tmp;

tmp.assign("blahblahblah");

Where if I typed tmp and then the period it would give me a list of possible functions and narrow it down as I type and possibly complete it if I had enough characters entered.  Maybe it's doable and I just am ignorant of how to do so.  Thanks in advance for any help.
Title: Re: C++/STL symbol completion?
Post by: ScottW, VP of Dev on April 05, 2011, 04:38:51 PM
Seems to work for me. I pasted your code into another sample (see attached file).

I typed "tmp." and then took the screen shot. SlickEdit doesn't filter the results, but if you keep typing it selects the first match. So, I typed "as" and it selected "assign()". Then I hit tab to complete the selection. See STLcompletionAfter.jpg.

Let us know if that works for you.

Title: Re: C++/STL symbol completion?
Post by: Jeremy on April 05, 2011, 04:53:37 PM
Wow.  I can't get this to work at all.  The only options I get are len and start as properties.  No functions available.  Does this have to do with the fact that I'm using a class that inherits from a class that has the #include <string>?  BTW, thank you for your quick response.
Title: Re: C++/STL symbol completion?
Post by: Jeremy on April 05, 2011, 05:24:27 PM
So I went next door to a friend's office who uses SE as well.  His STL, or at least std::string completion works perfectly.  I feel like I'm taking crazy pills.  Any ideas for my completion-challenged self? :)
Title: Re: C++/STL symbol completion?
Post by: Jeremy on April 05, 2011, 06:14:12 PM
Note that I had this problem with 15.0.1.3 (I was completely hot-fixed up-to-date).  Then I upgraded to 16b1, b2, b3 and am now using b4.
Title: Re: C++/STL symbol completion?
Post by: ScottW, VP of Dev on April 05, 2011, 08:53:05 PM
What compiler are you working with? Have you tagged the runtime libraries for it? If not, go to Tools > Tag Files, then click the "Auto Tag" button.

You need to be working in a project of the correct type to access those tagged libraries. What project type are you using?
Title: Re: C++/STL symbol completion?
Post by: shdtech on April 06, 2011, 09:12:30 PM
i already posted a similiar post for slickedit 14 , and now i'm using 15 and still stl doesnt work here either.
under fedora 12 & 14..
tagged everything over 1000 times , only stl does not work , even though string works for some reason but i guess it got something to do with templates..
Title: Re: C++/STL symbol completion?
Post by: ScottW, VP of Dev on April 11, 2011, 05:38:25 PM
Any chance you can create a small MSVS solution that exhibits this problem and send it to us? If we can see, we can probably fix it.