Author Topic: Enabling auto newline & indent /w linux.  (Read 4092 times)

Offline tool46and2

  • Single posting newcomer
  • *
  • Posts: 9
  • Kill me... please.
    • DON'T GO HERE!!!
Enabling auto newline & indent /w linux.
« on: January 27, 2016, 09:32:51 pm »
I've been using code::blocks for a while, but I've never needed to change any of the advanced settings, aside from linking to SDL and SDL dependencies.

I just recently installed A Ubuntu 14.10 derivative on my dinosaur Pentium III desktop, and I'm currently using using it as a compiler. This is the first time i've used the linux version of codeblocks (version 13.12 via apt-get)

I've noticed that, unlike the Windows version of C::B 13.12, when you put your cursor between two braces and press enter it doesn't automatically create a new line and auto indent four spaces into the new block.

I cannot touch type, and I'm a slow enough hunt-and-peck typer as it is, I don't want to press enter and then tab every time I start a new block. LIFE IS TOO SHORT!!

Help me. Please and thanks!!

DAAAAAAAAAAAAAAAYYYYYYYUUUUUUMMMMMM!!!!!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Enabling auto newline & indent /w linux.
« Reply #1 on: January 28, 2016, 02:59:52 am »
I suggest checking your editor settings on Windows and Linux to see what differs.

Settings -> Editor.

In the Tab Option Area I have
Tab Indents checked with size of 4.

In Indent Options I have these checked
Auto Indent
Smart Indent
and a few more checked.

I also have the file saved with a file extension; I have found the lack of a file extension can cause some strange issues.

Edit: I am using a very recent SVN self built Code::Blocks on Debian LInux and did NOT see the issue your discribed with the above settings that I think relate to the issue.
(I have only the compiler and Scripted Wizard plugins enabled at this time; I am testing the Scripted Wizard changing I am working on for several of the scripts.)

Tim S.
« Last Edit: January 28, 2016, 03:05:49 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline tool46and2

  • Single posting newcomer
  • *
  • Posts: 9
  • Kill me... please.
    • DON'T GO HERE!!!
Re: Enabling auto newline & indent /w linux.
« Reply #2 on: January 28, 2016, 08:19:48 am »
The file has an extension. Auto Indent and Smart Indent are checked.

I checked the code::blocks editor options on my windows laptop, but I didn't see any differences between the two.

I googled 'code::blocks nightly builds for linux', which led me to the code::blocks wiki.
The wiki says that I need to get the latest build from the nightly build forum.

but the latest nightly build post (21 November 2015 build) leads to a post for the Windows nightly build.

Where do I get the linux nightly package?
« Last Edit: January 28, 2016, 08:21:19 am by tool46and2 »
DAAAAAAAAAAAAAAAYYYYYYYUUUUUUMMMMMM!!!!!


Offline tool46and2

  • Single posting newcomer
  • *
  • Posts: 9
  • Kill me... please.
    • DON'T GO HERE!!!
Re: Enabling auto newline & indent /w linux.
« Reply #4 on: February 04, 2016, 06:01:27 am »
Installing the codeblocks-contrib package fixed the problem.
DAAAAAAAAAAAAAAAYYYYYYYUUUUUUMMMMMM!!!!!