Call to create an "Abbreviations" plug-in for Eclipse editor. [message #227363] |
Tue, 13 April 2004 02:25  |
Eclipse User |
|
|
|
Originally posted by: m.david.mdptws.com
So, after searching high and low and even posting to this forum I have
been unable to locate what to me seems like something someone would have
longed for and as such already developed years ago as a basic plugin. But
apparently either I am either the only one who truly loves the
"abbreviations" feature of jEdit (e.g if in xslt edit mode typing "cwto"
followed by the space bar would build a completed choose when test
otherwise code block with your cursor located between the quotes of the
the test attribute of the the first when element. Even after many years
of using text based code editors and feeling very comfortable with there
features and my ability to write code quickly using these features ( dot
based intellisense, etc...) when I stumbled upon this feature of jEdit I
was so blown away by how simple an idea it was and yet how much it had an
immediate impact on my coding speed that I began doing all of my XSLT and
XML development using this tool. The difference between typing "cwto" and
getting the above stated output tree as opposed to being 5 characters into
it "<xsl:" before a list even thinks about appearing is really quite
remarkable. I can seriously attest to the fact that writing XML and XSLT
files in jEdit (I still did/do my C#/.NET in VS.NET as the intellisense
alone in VS.NET is remarkable in and of itself and very difficult to give
up once you have your keystrokes hardcoded into your fingers) has
increased my code writing speed by at least 100% if not more.
So, its with the combined desire to keep my now beloved "abbreviations"
editor features in front of me at all times while gaining the many
benefits of Eclipse (but most particular the AspectJ editor, with APO
taking a sudden interest in my life) that I call out to anyone who wants
to be a part of a very quick and simple project to create an
"Abbreviations" plug-in. This would be my first Eclipse plug-in and,
although the process is very well documented it would be nice to have some
input from those of you who may have come across undocumented pitfalls or
know of some good API shortcuts for the base text editors read and replace
style methods.
Look forward to getting this started and for any and all input/advice you
might have for me.
Best regards,
<M:D/>
|
|
|
Re: Call to create an "Abbreviations" plug-in for Eclipse editor. [message #227714 is a reply to message #227363] |
Tue, 13 April 2004 06:52   |
Eclipse User |
|
|
|
Aren't what you call abbreviations Eclipse's code templates? Eg I type
for, Ctrl+space, and I get proposals for various iteration schemes (over
an array, a collection...)
M. David Peterson wrote:
> So, after searching high and low and even posting to this forum I have
> been unable to locate what to me seems like something someone would have
> longed for and as such already developed years ago as a basic plugin. But
> apparently either I am either the only one who truly loves the
> "abbreviations" feature of jEdit (e.g if in xslt edit mode typing "cwto"
> followed by the space bar would build a completed choose when test
> otherwise code block with your cursor located between the quotes of the
> the test attribute of the the first when element. Even after many years
> of using text based code editors and feeling very comfortable with there
> features and my ability to write code quickly using these features ( dot
> based intellisense, etc...) when I stumbled upon this feature of jEdit I
> was so blown away by how simple an idea it was and yet how much it had an
> immediate impact on my coding speed that I began doing all of my XSLT and
> XML development using this tool. The difference between typing "cwto" and
> getting the above stated output tree as opposed to being 5 characters into
> it "<xsl:" before a list even thinks about appearing is really quite
> remarkable. I can seriously attest to the fact that writing XML and XSLT
> files in jEdit (I still did/do my C#/.NET in VS.NET as the intellisense
> alone in VS.NET is remarkable in and of itself and very difficult to give
> up once you have your keystrokes hardcoded into your fingers) has
> increased my code writing speed by at least 100% if not more.
>
> So, its with the combined desire to keep my now beloved "abbreviations"
> editor features in front of me at all times while gaining the many
> benefits of Eclipse (but most particular the AspectJ editor, with APO
> taking a sudden interest in my life) that I call out to anyone who wants
> to be a part of a very quick and simple project to create an
> "Abbreviations" plug-in. This would be my first Eclipse plug-in and,
> although the process is very well documented it would be nice to have some
> input from those of you who may have come across undocumented pitfalls or
> know of some good API shortcuts for the base text editors read and replace
> style methods.
>
> Look forward to getting this started and for any and all input/advice you
> might have for me.
>
> Best regards,
>
> <M:D/>
>
|
|
|
Re: Call to create an "Abbreviations" plug-in for Eclipse editor. [message #227800 is a reply to message #227714] |
Tue, 13 April 2004 12:17   |
Eclipse User |
|
|
|
Those templates are loosely what he wants I think. However, they're
language specific and they don't pop up while you're typing. You have to
request them with Ctrl+space, which is annoying. The only templates I've
seen are for Java.
"Guillaume Pothier" <gpothier@free.fr> wrote in message
news:c5guh7$gpr$1@eclipse.org...
> Aren't what you call abbreviations Eclipse's code templates? Eg I type
> for, Ctrl+space, and I get proposals for various iteration schemes (over
> an array, a collection...)
>
>
> M. David Peterson wrote:
> > So, after searching high and low and even posting to this forum I have
> > been unable to locate what to me seems like something someone would have
> > longed for and as such already developed years ago as a basic plugin.
But
> > apparently either I am either the only one who truly loves the
> > "abbreviations" feature of jEdit (e.g if in xslt edit mode typing "cwto"
> > followed by the space bar would build a completed choose when test
> > otherwise code block with your cursor located between the quotes of the
> > the test attribute of the the first when element. Even after many years
> > of using text based code editors and feeling very comfortable with there
> > features and my ability to write code quickly using these features ( dot
> > based intellisense, etc...) when I stumbled upon this feature of jEdit I
> > was so blown away by how simple an idea it was and yet how much it had
an
> > immediate impact on my coding speed that I began doing all of my XSLT
and
> > XML development using this tool. The difference between typing "cwto"
and
> > getting the above stated output tree as opposed to being 5 characters
into
> > it "<xsl:" before a list even thinks about appearing is really quite
> > remarkable. I can seriously attest to the fact that writing XML and
XSLT
> > files in jEdit (I still did/do my C#/.NET in VS.NET as the intellisense
> > alone in VS.NET is remarkable in and of itself and very difficult to
give
> > up once you have your keystrokes hardcoded into your fingers) has
> > increased my code writing speed by at least 100% if not more.
> >
> > So, its with the combined desire to keep my now beloved "abbreviations"
> > editor features in front of me at all times while gaining the many
> > benefits of Eclipse (but most particular the AspectJ editor, with APO
> > taking a sudden interest in my life) that I call out to anyone who wants
> > to be a part of a very quick and simple project to create an
> > "Abbreviations" plug-in. This would be my first Eclipse plug-in and,
> > although the process is very well documented it would be nice to have
some
> > input from those of you who may have come across undocumented pitfalls
or
> > know of some good API shortcuts for the base text editors read and
replace
> > style methods.
> >
> > Look forward to getting this started and for any and all input/advice
you
> > might have for me.
> >
> > Best regards,
> >
> > <M:D/>
> >
|
|
|
Re: Call to create an "Abbreviations" plug-in for Eclipse editor. [message #227846 is a reply to message #227800] |
Tue, 13 April 2004 12:49  |
Eclipse User |
|
|
|
Originally posted by: m.david.mdptws.com
You're right on the money Ernest. The key to all of this is speed and
that requires the ability keep your fingers in there natural home
positions while avoiding key combinations and drop down pop ups. If I was
using it as a code lookup and completion utility where I was unsure of the
value I wanted to use then I would definitely use this built in
functionality. But XSLT's library of avaialable elements and attributes
is not exactly what you would consider big and as such it takes all of
about a week developing in XSLT before you have a pretty solid idea of
what's available to you to use in your code base.
The process involved in all of this is extremely simple as Im sure you can
tell. By using the space key to call your macro you simply need to check
the value that exists between the last space and this space and if it
matches one of the preset patterns it replaces that same pattern with the
pattern specified in your configuration file. The macro itself is all of
three lines and then of course you add in your lookup table. Unless I
hear otherwise that the built in code completion does allow me the ability
to configure regex-styled matches as opposed to key combinations then I
will just go ahead and throw the macro into the library along with a
lookup table of some sort. Any suggestions on what format to use for the
lookup table to get the most efficient results from my macro? Also, is
there a place to post the completed macro for others to copy and paste
into there macro library if so desired?
Thanks for your help guys!
<M:D/>
Ernest Pasour wrote:
> Those templates are loosely what he wants I think. However, they're
> language specific and they don't pop up while you're typing. You have to
> request them with Ctrl+space, which is annoying. The only templates I've
> seen are for Java.
> "Guillaume Pothier" <gpothier@free.fr> wrote in message
> news:c5guh7$gpr$1@eclipse.org...
> > Aren't what you call abbreviations Eclipse's code templates? Eg I type
> > for, Ctrl+space, and I get proposals for various iteration schemes (over
> > an array, a collection...)
> >
> >
> > M. David Peterson wrote:
> > > So, after searching high and low and even posting to this forum I have
> > > been unable to locate what to me seems like something someone would have
> > > longed for and as such already developed years ago as a basic plugin.
> But
> > > apparently either I am either the only one who truly loves the
> > > "abbreviations" feature of jEdit (e.g if in xslt edit mode typing "cwto"
> > > followed by the space bar would build a completed choose when test
> > > otherwise code block with your cursor located between the quotes of the
> > > the test attribute of the the first when element. Even after many years
> > > of using text based code editors and feeling very comfortable with there
> > > features and my ability to write code quickly using these features ( dot
> > > based intellisense, etc...) when I stumbled upon this feature of jEdit I
> > > was so blown away by how simple an idea it was and yet how much it had
> an
> > > immediate impact on my coding speed that I began doing all of my XSLT
> and
> > > XML development using this tool. The difference between typing "cwto"
> and
> > > getting the above stated output tree as opposed to being 5 characters
> into
> > > it "<xsl:" before a list even thinks about appearing is really quite
> > > remarkable. I can seriously attest to the fact that writing XML and
> XSLT
> > > files in jEdit (I still did/do my C#/.NET in VS.NET as the intellisense
> > > alone in VS.NET is remarkable in and of itself and very difficult to
> give
> > > up once you have your keystrokes hardcoded into your fingers) has
> > > increased my code writing speed by at least 100% if not more.
> > >
> > > So, its with the combined desire to keep my now beloved "abbreviations"
> > > editor features in front of me at all times while gaining the many
> > > benefits of Eclipse (but most particular the AspectJ editor, with APO
> > > taking a sudden interest in my life) that I call out to anyone who wants
> > > to be a part of a very quick and simple project to create an
> > > "Abbreviations" plug-in. This would be my first Eclipse plug-in and,
> > > although the process is very well documented it would be nice to have
> some
> > > input from those of you who may have come across undocumented pitfalls
> or
> > > know of some good API shortcuts for the base text editors read and
> replace
> > > style methods.
> > >
> > > Look forward to getting this started and for any and all input/advice
> you
> > > might have for me.
> > >
> > > Best regards,
> > >
> > > <M:D/>
> > >
|
|
|
Powered by
FUDForum. Page generated in 0.23599 seconds