Author Topic: When include a file, auto add matching brackets  (Read 24901 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: When include a file, auto add matching brackets
« Reply #15 on: August 02, 2010, 08:31:37 pm »
@Martin : could you apply this one too to the cc branch ?
Done. But it's untested (from my point of view).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: When include a file, auto add matching brackets
« Reply #16 on: August 02, 2010, 08:35:39 pm »
Code
make uninstall
But this is not very robust way of uninstalling software (you should have the original sources/build system).

killerbot:
The best way is to learn how to make packages from source for your distro (gentoo and arch are pretty easy with svn software. I don't know how hard it is in deb and rpm based distros, but it shouldn't be too hard :) )
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: When include a file, auto add matching brackets
« Reply #17 on: August 02, 2010, 10:11:00 pm »
checkinstall is the package to look for (at least for test installs, normally not for real packages).
It monitors the installation and creates Slackware, rpm or debian packages.

And "make uninstall" should work, and yes it should be used from original sources of course.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: When include a file, auto add matching brackets
« Reply #18 on: August 02, 2010, 10:38:45 pm »
well packages are a bit too much, when building from source : make && make install, then make uninstall should do the trick, I guess as suggested by Jens.

By the way, currently I checked out the cc branch with just read permissions, anyone have it open with write permissions --> merge from trunk please because cc branch does not build (wxMedia issue ...).

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: When include a file, auto add matching brackets
« Reply #19 on: August 03, 2010, 08:00:25 am »
I tested it using ArchLinux,  it still works well, but prompt header slower rate of more than XP. :(

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: When include a file, auto add matching brackets
« Reply #20 on: August 03, 2010, 08:03:10 am »
Here is another patch, for support preprocessor completion.
And improve system headers completion.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: When include a file, auto add matching brackets
« Reply #21 on: August 03, 2010, 08:19:57 am »
wauw, this is really looking very great  :P

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: When include a file, auto add matching brackets
« Reply #22 on: August 09, 2010, 04:01:20 pm »
it however doesn't work for some preprocessor stuff for me.
I want to type : #include ......

when I type the '#' I already get code completion suggestions, but include is not one of them.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: When include a file, auto add matching brackets
« Reply #23 on: August 10, 2010, 04:20:51 am »
it however doesn't work for some preprocessor stuff for me.
I want to type : #include ......

when I type the '#' I already get code completion suggestions, but include is not one of them.
Fixed!
« Last Edit: August 10, 2010, 04:44:39 am by Loaden »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: When include a file, auto add matching brackets
« Reply #24 on: August 10, 2010, 08:13:07 am »
I can confirm this is fixed, but now I don't get any include files anymore.

1) I type #in  --> complete to include
2) then I type either < or "  --> once again I get the list of preprocessor completions (define, elif, include , ....)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: When include a file, auto add matching brackets
« Reply #25 on: August 10, 2010, 08:41:54 am »
1) I type #in  --> complete to include
2) then I type either < or "  --> once again I get the list of preprocessor completions (define, elif, include , ....)
Harhar... same here. :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: When include a file, auto add matching brackets
« Reply #26 on: August 10, 2010, 02:39:53 pm »
1) I type #in  --> complete to include
2) then I type either < or "  --> once again I get the list of preprocessor completions (define, elif, include , ....)
Harhar... same here. :-)
Sorry, I was careless.
Fixed again.
« Last Edit: August 10, 2010, 02:46:19 pm by Loaden »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: When include a file, auto add matching brackets
« Reply #27 on: August 10, 2010, 03:55:57 pm »
I can confirm it now works, and also right click on an include to open it, now works again (just before most of them were 'not found').