News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Codeblocks does not auto indent when Enter key is pressed (On Fedora 26)

Started by bolevole, October 01, 2017, 11:22:54 PM

Previous topic - Next topic

bolevole

Looks like this is old issue: http://forums.next.codeblocks.org/index.php?topic=19988.0

Example:
int main()
{//Cursor here


After pressing Enter:
int main()
{
//Cursor here


Should be:
int main()
{
    //Cursor here


Package is from official repo
Problem does not happen with svn 11146 on Ubuntu 17.04
Problem does not happen with codeblocks 16.01 installed from repo (Ubuntu 17.04)

Settings in Editor->General Setting->Indent Options are the same in all three cases

It is kinda annoying since I am used to auto indent

Jenna

Are you sure it's from RPMFusion ?
I do not find it there.

Your example (one curly brace and cursor after it) works for me as you expect it.
The example from the old thread you linked to (two curly braces and the cursor between both), does not work.
But the autocompletion (type the left brace and get both and the cursor placed with indentation in the line between them, like ollydbg's example) works fine here.

Code::Blocks from my copr (see signature).

bolevole

Quote from: jens on October 01, 2017, 11:41:26 PM
Are you sure it's from RPMFusion ?
I do not find it there.

Your example (one curly brace and cursor after it) works for me as you expect it.
The example from the old thread you linked to (two curly braces and the cursor between both), does not work.
But the autocompletion (type the left brace and get both and the cursor placed with indentation in the line between them, like ollydbg's example) works fine here.

Code::Blocks from my copr (see signature).

You are right, for some reason could not install it first time so I installed rpmfusion packages then codeblocks, probably mistyped.
It is from official repo
I linked post because first problem is similar to mine(two curly braces)


Jenna

Official repo has 16.01, can you try a nightly build from my copr and see if it works better ?

bolevole

Quote from: jens on October 02, 2017, 06:49:05 AM
Official repo has 16.01, can you try a nightly build from my copr and see if it works better ?

Well problem still exists, I installed from your copr rev. 11146
I should note that fedora 26 is running inside VirtualBox

oBFusCATed

Do you have the smart indent plugins installed? They are part of the contrib plugins package.
(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!]

bolevole

Quote from: oBFusCATed on October 03, 2017, 07:48:47 PM
Do you have the smart indent plugins installed? They are part of the contrib plugins package.

That fixed the issue, for some reason it was not installed along with main package, thank you