Home » Language IDEs » C / C++ IDE (CDT) » Disabling autoformat
Disabling autoformat [message #135024] |
Sat, 15 January 2005 21: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 #135487 is a reply to message #135461] |
Tue, 18 January 2005 17:16   |
Eclipse User |
|
|
|
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 #135527 is a reply to message #135514] |
Wed, 19 January 2005 01:57   |
Eclipse User |
|
|
|
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 09:22   |
Eclipse User |
|
|
|
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 10:46   |
Eclipse User |
|
|
|
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 11:37   |
Eclipse User |
|
|
|
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/
> >
> >
>
>
|
|
| |
Re: Disabling autoformat [message #993852 is a reply to message #838710] |
Tue, 25 December 2012 13:17  |
Eclipse User |
|
|
|
Personally, I'd like it if there was some way to disable all "smart" editing features. I am a fast typist, and all I want is an editor that inserts everything I type, exactly as I type it, and nothing more or less. Is that too much to ask of an editor?
How about, when you decide to do something "smart" for me, you give me the option of disabling it just in case I don't think it's so smart?
A very knowledgable person once said "Anything that can be done FOR you automatically can be done TO you automatically".
|
|
|
Goto Forum:
Current Time: Sun Jul 06 00:31:24 EDT 2025
Powered by FUDForum. Page generated in 0.05523 seconds
|