Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: tool46and2 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!!
-
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.
-
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?
-
http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_nightly_build_on_Ubuntu
at the bottom:
https://launchpad.net/~pasgui/+archive/ppa/
greetings
-
Installing the codeblocks-contrib package fixed the problem.