Home » Language IDEs » C / C++ IDE (CDT) » Disabling autoformat
Disabling autoformat [message #135024] |
Sun, 16 January 2005 02:23 |
Eclipse User |
|
|
|
Originally posted by: usenetNOSPAM.jimrandomh.org
HOW do you disable the auto-indentation?
It's driving me nuts. The editor keeps trying to be smart and inserting
tabs when I don't want it to. I've looked all over, and I can't find an
option that will make it stop. It should NOT be so hard to make the
text editor behave like a TEXT EDITOR, so where is it?
--
CalcRogue: TI-89, TI-92+, PalmOS, Windows and Linux.
http://calcrogue.jimrandomh.org/
|
|
|
Re: Disabling autoformat [message #135049 is a reply to message #135024] |
Sun, 16 January 2005 18:52 |
Eclipse User |
|
|
|
Originally posted by: usenetNOSPAM.jimrandomh.org
jimrandomh <usenetNOSPAM@jimrandomh.org> wrote:
> HOW do you disable the auto-indentation?
>
> It's driving me nuts. The editor keeps trying to be smart and
> inserting tabs when I don't want it to. I've looked all over, and
> I can't find an option that will make it stop. It should NOT be so
> hard to make the text editor behave like a TEXT EDITOR, so where
> is it?
Well, from some experimentation with the JAVA editor, it seems that
ctrl+shift+insert is supposed to do it (disable "smart insert" mode).
But it doesn't work in the C++ editor, so I've opened
https://bugs.eclipse.org/bugs/show_bug.cgi?id=82928
--
CalcRogue: TI-89, TI-92+, PalmOS, Windows and Linux.
http://calcrogue.jimrandomh.org/
|
|
|
Re: Disabling autoformat [message #135461 is a reply to message #135024] |
Tue, 18 January 2005 18:08 |
Eclipse User |
|
|
|
Originally posted by: usenetNOSPAM.jimrandomh.org
jimrandomh <usenetNOSPAM@jimrandomh.org> wrote:
> HOW do you disable the auto-indentation?
>
> It's driving me nuts. The editor keeps trying to be smart and
> inserting tabs when I don't want it to. I've looked all over, and
> I can't find an option that will make it stop. It should NOT be so
> hard to make the text editor behave like a TEXT EDITOR, so where
> is it?
Due to this problem, and the apparent absence of anyone interested in
fixing it, I have decided not to use Eclipse or to support building any
of my projects with it. Someone wake me up when Eclipse has a working
C++ editor.
--
CalcRogue: TI-89, TI-92+, PalmOS, Windows and Linux.
http://calcrogue.jimrandomh.org/
|
|
|
Re: Disabling autoformat [message #135487 is a reply to message #135461] |
Tue, 18 January 2005 22:16 |
Slamlander Messages: 31 Registered: July 2009 |
Member |
|
|
Actually, there is a way to fix it. You just didn't allow enough time for a
response.
go to: Window>Preferences>C/C++>Code Templates
Adjust the templates to your coding style.
viola! you are done!
BTW, if you'd worked through the tutorials then you would have known about
it already.
--
--
E X Q U I S I T U S
Neuchatel, CH
--
"jimrandomh" <usenetNOSPAM@jimrandomh.org> wrote in message
news:Xns95E28559AFDDBjimrandomh@206.191.52.34...
> jimrandomh <usenetNOSPAM@jimrandomh.org> wrote:
> > HOW do you disable the auto-indentation?
> >
> > It's driving me nuts. The editor keeps trying to be smart and
> > inserting tabs when I don't want it to. I've looked all over, and
> > I can't find an option that will make it stop. It should NOT be so
> > hard to make the text editor behave like a TEXT EDITOR, so where
> > is it?
>
> Due to this problem, and the apparent absence of anyone interested in
> fixing it, I have decided not to use Eclipse or to support building any
> of my projects with it. Someone wake me up when Eclipse has a working
> C++ editor.
>
> --
> CalcRogue: TI-89, TI-92+, PalmOS, Windows and Linux.
> http://calcrogue.jimrandomh.org/
|
|
|
Re: Disabling autoformat [message #135514 is a reply to message #135487] |
Wed, 19 January 2005 04:06 |
Eclipse User |
|
|
|
Originally posted by: usenetNOSPAM.jimrandomh.org
"exquisitus" <slamlander@livejournal.com> wrote:
> Actually, there is a way to fix it. You just didn't allow enough
> time for a response.
> go to: Window>Preferences>C/C++>Code Templates
> Adjust the templates to your coding style.
> viola! you are done!
>
> BTW, if you'd worked through the tutorials then you would have
> known about it already.
Already been through that section, and that's not what I'm talking
about. That section has auto-completions for various control
structures, but even with all of them disabled, simply typing [open
curly brace][enter] into an empty file inserts an unwanted extra tab.
I've systematically gone through everything in the preferences and am
fairly certain that there's nothing there.
--
CalcRogue: TI-89, TI-92+, PalmOS, Windows and Linux.
http://calcrogue.jimrandomh.org/
|
|
|
Re: Disabling autoformat [message #135527 is a reply to message #135514] |
Wed, 19 January 2005 06:57 |
Slamlander Messages: 31 Registered: July 2009 |
Member |
|
|
I apologize, I just created a new template called 'braces'. It looks like
this;
{
${cursor}
}
.... well with proper indents, of course (there's a lot to be said for stupid
editors with monotype fonts). It didn't work. The damned thing always gives
you an extra indent after an open brace and doesn't complete the closing
brace. Yes, it bothers me too, just not as much.
This could either be a bug or a feature. 90% of the time, when entering an
open brace, you want the indent on the next line, depending on your coding
style.
I don't know what to tell you now. I'm so used to editors doing that to me
that I just hit the backspace to unindent, when required. It's definitely
stopped irritating me decades ago. Every "smart" editor I know of does this,
all the way back to 'brief'. Personally, I think that it's better than no
indent.
Short answer: I can't find it either. If it's not already written up then it
may be worth a mention in bugzilla. You found it ... have at it.
"jimrandomh" <usenetNOSPAM@jimrandomh.org> wrote in message
news:Xns95E2EAAD0EBBEjimrandomh@206.191.52.34...
> "exquisitus" <slamlander@livejournal.com> wrote:
>
> > Actually, there is a way to fix it. You just didn't allow enough
> > time for a response.
> > go to: Window>Preferences>C/C++>Code Templates
> > Adjust the templates to your coding style.
> > viola! you are done!
> >
> > BTW, if you'd worked through the tutorials then you would have
> > known about it already.
>
> Already been through that section, and that's not what I'm talking
> about. That section has auto-completions for various control
> structures, but even with all of them disabled, simply typing [open
> curly brace][enter] into an empty file inserts an unwanted extra tab.
>
> I've systematically gone through everything in the preferences and am
> fairly certain that there's nothing there.
>
> --
> CalcRogue: TI-89, TI-92+, PalmOS, Windows and Linux.
> http://calcrogue.jimrandomh.org/
|
|
|
Re: Disabling autoformat [message #135552 is a reply to message #135527] |
Wed, 19 January 2005 14:22 |
John Camelon Messages: 242 Registered: July 2009 |
Senior Member |
|
|
Please raise a bug @ bugs.eclipse.org on CDT UI.
Thanks
"exquisitus" <slamlander@livejournal.com> wrote in message
news:csl0hm$13b$1@www.eclipse.org...
> I apologize, I just created a new template called 'braces'. It looks like
> this;
> {
> ${cursor}
>
> }
>
> ... well with proper indents, of course (there's a lot to be said for
stupid
> editors with monotype fonts). It didn't work. The damned thing always
gives
> you an extra indent after an open brace and doesn't complete the closing
> brace. Yes, it bothers me too, just not as much.
>
> This could either be a bug or a feature. 90% of the time, when entering an
> open brace, you want the indent on the next line, depending on your coding
> style.
>
> I don't know what to tell you now. I'm so used to editors doing that to me
> that I just hit the backspace to unindent, when required. It's definitely
> stopped irritating me decades ago. Every "smart" editor I know of does
this,
> all the way back to 'brief'. Personally, I think that it's better than no
> indent.
>
> Short answer: I can't find it either. If it's not already written up then
it
> may be worth a mention in bugzilla. You found it ... have at it.
>
> "jimrandomh" <usenetNOSPAM@jimrandomh.org> wrote in message
> news:Xns95E2EAAD0EBBEjimrandomh@206.191.52.34...
> > "exquisitus" <slamlander@livejournal.com> wrote:
> >
> > > Actually, there is a way to fix it. You just didn't allow enough
> > > time for a response.
> > > go to: Window>Preferences>C/C++>Code Templates
> > > Adjust the templates to your coding style.
> > > viola! you are done!
> > >
> > > BTW, if you'd worked through the tutorials then you would have
> > > known about it already.
> >
> > Already been through that section, and that's not what I'm talking
> > about. That section has auto-completions for various control
> > structures, but even with all of them disabled, simply typing [open
> > curly brace][enter] into an empty file inserts an unwanted extra tab.
> >
> > I've systematically gone through everything in the preferences and am
> > fairly certain that there's nothing there.
> >
> > --
> > CalcRogue: TI-89, TI-92+, PalmOS, Windows and Linux.
> > http://calcrogue.jimrandomh.org/
>
>
|
|
|
Re: Disabling autoformat [message #135566 is a reply to message #135527] |
Wed, 19 January 2005 15:46 |
Slamlander Messages: 31 Registered: July 2009 |
Member |
|
|
Okay, it's done. Bug #83196
"exquisitus" <slamlander@livejournal.com> wrote in message
news:csl0hm$13b$1@www.eclipse.org...
> I apologize, I just created a new template called 'braces'. It looks like
> this;
> {
> ${cursor}
>
> }
>
> ... well with proper indents, of course (there's a lot to be said for
stupid
> editors with monotype fonts). It didn't work. The damned thing always
gives
> you an extra indent after an open brace and doesn't complete the closing
> brace. Yes, it bothers me too, just not as much.
>
> This could either be a bug or a feature. 90% of the time, when entering an
> open brace, you want the indent on the next line, depending on your coding
> style.
>
> I don't know what to tell you now. I'm so used to editors doing that to me
> that I just hit the backspace to unindent, when required. It's definitely
> stopped irritating me decades ago. Every "smart" editor I know of does
this,
> all the way back to 'brief'. Personally, I think that it's better than no
> indent.
>
> Short answer: I can't find it either. If it's not already written up then
it
> may be worth a mention in bugzilla. You found it ... have at it.
>
> "jimrandomh" <usenetNOSPAM@jimrandomh.org> wrote in message
> news:Xns95E2EAAD0EBBEjimrandomh@206.191.52.34...
> > "exquisitus" <slamlander@livejournal.com> wrote:
> >
> > > Actually, there is a way to fix it. You just didn't allow enough
> > > time for a response.
> > > go to: Window>Preferences>C/C++>Code Templates
> > > Adjust the templates to your coding style.
> > > viola! you are done!
> > >
> > > BTW, if you'd worked through the tutorials then you would have
> > > known about it already.
> >
> > Already been through that section, and that's not what I'm talking
> > about. That section has auto-completions for various control
> > structures, but even with all of them disabled, simply typing [open
> > curly brace][enter] into an empty file inserts an unwanted extra tab.
> >
> > I've systematically gone through everything in the preferences and am
> > fairly certain that there's nothing there.
> >
> > --
> > CalcRogue: TI-89, TI-92+, PalmOS, Windows and Linux.
> > http://calcrogue.jimrandomh.org/
>
>
|
|
|
Re: Disabling autoformat [message #135594 is a reply to message #135566] |
Wed, 19 January 2005 16:37 |
John Camelon Messages: 242 Registered: July 2009 |
Senior Member |
|
|
Thanks
"exquisitus" <slamlander@livejournal.com> wrote in message
news:cslvcj$3cl$1@www.eclipse.org...
> Okay, it's done. Bug #83196
>
> "exquisitus" <slamlander@livejournal.com> wrote in message
> news:csl0hm$13b$1@www.eclipse.org...
> > I apologize, I just created a new template called 'braces'. It looks
like
> > this;
> > {
> > ${cursor}
> >
> > }
> >
> > ... well with proper indents, of course (there's a lot to be said for
> stupid
> > editors with monotype fonts). It didn't work. The damned thing always
> gives
> > you an extra indent after an open brace and doesn't complete the closing
> > brace. Yes, it bothers me too, just not as much.
> >
> > This could either be a bug or a feature. 90% of the time, when entering
an
> > open brace, you want the indent on the next line, depending on your
coding
> > style.
> >
> > I don't know what to tell you now. I'm so used to editors doing that to
me
> > that I just hit the backspace to unindent, when required. It's
definitely
> > stopped irritating me decades ago. Every "smart" editor I know of does
> this,
> > all the way back to 'brief'. Personally, I think that it's better than
no
> > indent.
> >
> > Short answer: I can't find it either. If it's not already written up
then
> it
> > may be worth a mention in bugzilla. You found it ... have at it.
> >
> > "jimrandomh" <usenetNOSPAM@jimrandomh.org> wrote in message
> > news:Xns95E2EAAD0EBBEjimrandomh@206.191.52.34...
> > > "exquisitus" <slamlander@livejournal.com> wrote:
> > >
> > > > Actually, there is a way to fix it. You just didn't allow enough
> > > > time for a response.
> > > > go to: Window>Preferences>C/C++>Code Templates
> > > > Adjust the templates to your coding style.
> > > > viola! you are done!
> > > >
> > > > BTW, if you'd worked through the tutorials then you would have
> > > > known about it already.
> > >
> > > Already been through that section, and that's not what I'm talking
> > > about. That section has auto-completions for various control
> > > structures, but even with all of them disabled, simply typing [open
> > > curly brace][enter] into an empty file inserts an unwanted extra tab.
> > >
> > > I've systematically gone through everything in the preferences and am
> > > fairly certain that there's nothing there.
> > >
> > > --
> > > CalcRogue: TI-89, TI-92+, PalmOS, Windows and Linux.
> > > http://calcrogue.jimrandomh.org/
> >
> >
>
>
|
|
| | |
Goto Forum:
Current Time: Tue Sep 24 08:39:22 GMT 2024
Powered by FUDForum. Page generated in 0.33920 seconds
|