Request: New Live Template Macros

I love Live Templates! They work so much better than Code Snippets. However, I do wish they had more functionality.

When I work with legacy databases, I often wish for a macro that could:
- Uppercase another variable
- Lowercase another variable
- Collapse COLUMN_NAME to columnName (camel case)

I guess I am wishing for the ability to write code that LiveTemplate macros could call. Maybe with the DLR announcement by Microsoft at MIX07, you write a macro that would be able to call a function in scripting language like EMCAScript, IronRuby or IronPython.

Just dreaming out loud. Thanks for your great Resharper product!
James

3 comments
Comment actions Permalink

Just as an FYI for those that don't know:

What is the DLR announcement?
The ability for .NET to support dynamic languages like Ruby, Python, and Javascript.
see: http://blogs.msdn.com/hugunin/archive/2007/04/30/a-dynamic-language-runtime-dlr.aspx

What is EcmaScript?
Microsoft's version of Javascript.

J

0
Comment actions Permalink

Hello James,

Thanks for suggestion, we will consider it for future versions of ReSharper.

Meanwhile, you may want to write your own macros, it is not that difficult.
Check this sample:
http://www.jetbrains.net/confluence/display/ReSharper/CurrentFileMacro
If you have any questions, you are welcome to jetbrains.resharper.openapi
newsgroup, or mirrored forum (http://www.intellij.net/forums/forum.jspa?forumID=67).

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


JB> I love Live Templates! They work so much better than Code Snippets.
JB> However, I do wish they had more functionality.
JB>
JB> When I work with legacy databases, I often wish for a macro that
JB> could:
JB> - Uppercase another variable
JB> - Lowercase another variable
JB> - Collapse COLUMN_NAME to columnName (camel case)
JB> I guess I am wishing for the ability to write code that LiveTemplate
JB> macros could call. Maybe with the DLR announcement by Microsoft at
JB> MIX07, you write a macro that would be able to call a function in
JB> scripting language like EMCAScript, IronRuby or IronPython.
JB>
JB> Just dreaming out loud. Thanks for your great Resharper product!
JB> James
JB>


0
Comment actions Permalink

I tried installing the R# Powertoys source (PowerToysSourcesSetup.msi) from your site (http://www.jetbrains.net/confluence/display/ReSharper/PowerToys+Sources). The installer failed with the following:

The folder path 'C:' contains an invalid character.

My environment is XP SP2 en-GB

0

Please sign in to leave a comment.