Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
anjuta indentation... how?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
kcy29581
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 284
Location: England

PostPosted: Fri Jun 17, 2005 4:04 pm    Post subject: anjuta indentation... how? Reply with quote

Hi all,

I used to code at university (i think I used Jext...) and I love a nifty, simple feature I had: When I opened brackets, like {, and when on the next line, the program automatically indented the line for me for clear code. An example:

Code:

{
std::cout << "Hello World!\n";
}

NOT what I want
-----------------------------------------
{
  std::cout << "Hello World!\n";
}

What I DO want

Yes, I already know about the tab button, but I swear it would just add one extra space on the second line, rather than do a whole tab. I use anjuta, jext and possibly gvim if it has this feature.
I would rather use anjuta or jext though.

Thanks
_________________
There is no spoon...

Oh, and it's WINDOWS not Winblowz for those who can't spell
Back to top
View user's profile Send private message
forgotten1
Guru
Guru


Joined: 11 Jan 2005
Posts: 477
Location: East Coast, USA

PostPosted: Fri Jun 17, 2005 4:14 pm    Post subject: Reply with quote

As indicated at the bottom of the page:

http://www.anjuta.org/anjuta.php?page=documentations&subpage=documents/C/anjuta-manual/x274.html

You have to install the indent utility.
Back to top
View user's profile Send private message
kcy29581
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 284
Location: England

PostPosted: Fri Jun 17, 2005 4:21 pm    Post subject: Reply with quote

Cheers. I also realised that I didn't save the bloody file as something.cpp, but as something.ccp and indentation only works for the cpp and other valid filenames!!! This at least works in anjuta, should work in jext as well.

Do I feel like such an idiot...
_________________
There is no spoon...

Oh, and it's WINDOWS not Winblowz for those who can't spell
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum