Re: [Anjuta-list] Indentation?



Hi,

I checked "Tools" plugin, and the auto-indent does work. But, I have
still a problem of other issue. Or,

------------------------------------------------
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;
}
------------------------------------------------

Thank you,

Sang Chul
 
On Wed, 2008-01-30 at 17:45 -0500, Sang Chul Choi wrote:
> Thank you for the response.
> 
> It does nothing.
> 
> Thank you,
> 
> Sang Chul
> On Wed, 2008-01-30 at 17:44 -0500, Johannes Schmid wrote:
> > Hi!
> >
> > What happens if you select the whole text and choose Edit->Auto Indent?
> >
> > Regards,
> > Johannes
> >
> > Am Mittwoch, den 30.01.2008, 17:35 -0500 schrieb Sang Chul Choi:
> > > You're right. It is 2.2.0.
> > >
> > > Here is what I typed and got.
> > >
> > > int main ()
> > > {
> > > nice;
> > >   nice;
> > >   ok;
> > >   if (x>0)
> > >   {
> > >   ok;
> > >   }
> > > }
> > >
> > > But what I wanted was
> > >
> > > int main ()
> > > {
> > >   nice;
> > >   nice;
> > >   ok;
> > >   if (x>0)
> > >     {
> > >       ok;
> > >     }
> > > }
> > >
> > > I could not get it.
> > >
> > > Thank you,
> > >
> > > 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
> > >
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Anjuta-list mailing list
> Anjuta-list lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/anjuta-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]