Re: [Anjuta-list] Indentation?
- From: Sang Chul Choi <choi biology rutgers edu>
- To: Johannes Schmid <jhs jsschmid de>
- Cc: Anjuta List <anjuta-list lists sourceforge net>
- Subject: Re: [Anjuta-list] Indentation?
- Date: Wed, 30 Jan 2008 17:43:53 -0500
I should have sent it all.
In the previous letter, I created a file and then tested. Here is
another file that was in the project already when I created a C++
project.
------------------------------------------------
int main()
{
std::cout << "Hello world!" << std::endl;
nice;
nice;
return 0;
}
------------------------------------------------
When I type Enter and "okay" after the 3rd line (... std::endl;), I got
this.
------------------------------------------------
int main()
{
std::cout << "Hello world!" << std::endl;
okay[prompt is blinking]
nice;
nice;
return 0;
}
------------------------------------------------
The indentation is not what I want. The indented 4 spaces are not spaces
but a tab. I also unchecked "Use tabs for indentation" in
Preference/GtkSourceview Editor/Editor.
It is hard for me to edit a c or c++ file now.
Thanks,
Sang Chul
On Wed, 2008-01-30 at 13:59 -0500, Johannes Schmid wrote:
> Hi!
>
>
> > I am using Anjuta 2.12.0 that is from ubunut package.
>
> There is no 2.12, I guess you mean 2.2!
>
> > I want to use auto
> > indentation. It does not seem working. I tried to change anything. It
> > does nothing. Maybe there is something I should have done. I unchecked
> > "disable auto format" in the preference. Another question is that I want
> > to have spaces rather than tab for indentation. I unchecked "use tabs
> > for indentation." But, it still generates tabs than spaces when I type
> > in codes.
>
> Hmm, pressing Ctrl-I should indent C/C++ source files and pressing
> <Enter> should also indent the next line correctly.
>
> Are you sure you changed the correct preferences in "C/C++/Java" and in
> the Editor plugin?
>
> Regards,
> Johannes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]