Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Working with C and code::blocks

  1. #11
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Working with C and code::blocks

    Code:
    xsel -bo | sed -r '/^[0-9]*:/d; s/[“”]/"/g' | xsel -bi
    you don't get empty lines which were there for readability purposes but whatever

  2. #12
    Join Date
    Sep 2010
    Beans
    208
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Working with C and code::blocks

    Quote Originally Posted by Vaphell View Post
    Code:
    xsel -bo | sed -r '/^[0-9]*:/d; s/[“”]/"/g' | xsel -bi
    you don't get empty lines which were there for readability purposes but whatever
    Thank you!
    do you know also how to automatically tab it? (maybe not by this script but some code::blocks option?)

  3. #13
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Working with C and code::blocks

    what do you mean by 'tab it'? if you mean autoformatting of code then in Settings/Editor/Source formatter you can choose a style and apply it to your code with Plugins/Source code formatter

  4. #14
    Join Date
    Sep 2010
    Beans
    208
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Working with C and code::blocks

    Quote Originally Posted by Vaphell View Post
    what do you mean by 'tab it'? if you mean autoformatting of code then in Settings/Editor/Source formatter you can choose a style and apply it to your code with Plugins/Source code formatter
    Thank you again! didn't know that. by the way, is there any keyboard shortcut for the source formatter?
    Another question, every time I want to create another program I need to click on "Create New Project" -> "Files" -> "C/C++ Source" -> "C" -> Enter filename + path. Is there anyway to to make it remember everything until the filename + path?

  5. #15
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Working with C and code::blocks

    Thank you again! didn't know that. by the way, is there any keyboard shortcut for the source formatter?
    you don't click much around the menus on your own, do you?
    Settings/Editor/Keyboard shortcuts, find code formatter and assign something.

    no idea about the second question.

  6. #16
    Join Date
    Sep 2010
    Beans
    208
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Working with C and code::blocks

    Quote Originally Posted by Vaphell View Post
    you don't click much around the menus on your own, do you?
    Settings/Editor/Keyboard shortcuts, find code formatter and assign something.

    no idea about the second question.
    Well, I didn't have "Keyboard Shortcuts" in the menu.
    Anyway, I searched for it and it is apparently a 3rd party plugin that has to be installed by installing the package codeblocks-contrib.
    Any ideas about the second question?

  7. #17
    Join Date
    Sep 2010
    Beans
    208
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Working with C and code::blocks

    So is there any way to create a shortcut for "Create New Project" -> "Files" -> "C/C++ Source" -> "C" -> Enter filename + path?

  8. #18
    Join Date
    Sep 2006
    Location
    BC, Canada
    Beans
    347
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Working with C and code::blocks

    You know, in the amount of time you've spent looking for an answer to this problem you could have typed out the code yourself. I'm willing to bet that you'd have better retention too.

  9. #19
    Join Date
    Sep 2010
    Beans
    208
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Working with C and code::blocks

    Quote Originally Posted by JupiterV2 View Post
    You know, in the amount of time you've spent looking for an answer to this problem you could have typed out the code yourself. I'm willing to bet that you'd have better retention too.
    You think I didn't?
    Of course I code, that's the reason I am asking that...

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •