Author Topic: C++/STL symbol completion?  (Read 7331 times)

Jeremy

  • Community Member
  • Posts: 9
  • Hero Points: 0
C++/STL symbol completion?
« 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.

ScottW, VP of Dev

  • Senior Community Member
  • Posts: 1471
  • Hero Points: 64
Re: C++/STL symbol completion?
« Reply #1 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.


Jeremy

  • Community Member
  • Posts: 9
  • Hero Points: 0
Re: C++/STL symbol completion?
« Reply #2 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.

Jeremy

  • Community Member
  • Posts: 9
  • Hero Points: 0
Re: C++/STL symbol completion?
« Reply #3 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? :)

Jeremy

  • Community Member
  • Posts: 9
  • Hero Points: 0
Re: C++/STL symbol completion?
« Reply #4 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.

ScottW, VP of Dev

  • Senior Community Member
  • Posts: 1471
  • Hero Points: 64
Re: C++/STL symbol completion?
« Reply #5 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?

shdtech

  • Community Member
  • Posts: 12
  • Hero Points: 0
Re: C++/STL symbol completion?
« Reply #6 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..

ScottW, VP of Dev

  • Senior Community Member
  • Posts: 1471
  • Hero Points: 64
Re: C++/STL symbol completion?
« Reply #7 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.