Author Topic: Codeblocks does not auto indent when Enter key is pressed (On Fedora 26)  (Read 356 times)

Offline bolevole

  • Multiple posting newcomer
  • *
  • Posts: 10
Looks like this is old issue: http://forums.codeblocks.org/index.php?topic=19988.0

Example:
Code: [Select]
int main()
{//Cursor here

After pressing Enter:
Code: [Select]
int main()
{
//Cursor here

Should be:
Code: [Select]
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
« Last Edit: October 01, 2017, 11:54:02 pm by bolevole »

Online jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7208
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Codeblocks does not auto indent when Enter key is pressed (On Fedora 26)
« Reply #1 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).

Offline bolevole

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Codeblocks does not auto indent when Enter key is pressed (On Fedora 26)
« Reply #2 on: October 01, 2017, 11:59:24 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)


Online jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7208
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Codeblocks does not auto indent when Enter key is pressed (On Fedora 26)
« Reply #3 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 ?

Offline bolevole

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Codeblocks does not auto indent when Enter key is pressed (On Fedora 26)
« Reply #4 on: October 03, 2017, 05:23:32 pm »
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10279
Re: Codeblocks does not auto indent when Enter key is pressed (On Fedora 26)
« Reply #5 on: October 03, 2017, 07:48:47 pm »
Do you have the smart indent plugins installed? They are part of the contrib plugins package.
<debugger plugin maintainer>
(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 bolevole

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Codeblocks does not auto indent when Enter key is pressed (On Fedora 26)
« Reply #6 on: October 03, 2017, 10:03:17 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