A set of plugins

Hi all

Here is a small set of 6 plugins, that I have made for ReSharper. Two of them have been posted before.

To install them, unzip the attached file into the Plugins folder.

No guarantees for either performance or actually working for you :)

Anybody want the source code, I'll be happy to post it.

--Jakob

CatchExceptions:
-


Context action for generating try..catch statements. The action looks in the XML comments for documented exceptions and generate a catch clause for each.

FavoriteFiles:
-


A simple Favorite File list where you can define often used files. The files are stored relative to the project, so if you have multiple solutions using the same project, you only have to define it once.

Pops up when you press CtrlShiftAlt+E and you can use numerics (1-9) to access the files in the list.

BTW: this source fore this plugin shows how to use the brilliant JetMenu.

Introduce String Constant:
-


Converts a string to a constant. The constant can either be located in the current file or in another class. Useful if you have a class that contains all your string constants. The classes can be configured in the JetBrains Options dialog.

Parameter Asserts:
-


Generate assert statements for method parameters. This has been posted before. Only usable, if your coding practice requires you to assert all input parameters to methods. This version contains a number of enhancements.

String.Empty
-


Converts "" to string.Empty. Has been posted before.

Synchronize Namespace With File Path
-


Our code practice requires that the namespace and file path must match. So the class "MyProject.Namespace1.Class" must be in a file in the folder "MyProject\Namespace1". The context action allow you to either change the namespace or move the file.

The first part of the namespace is handled specially, so it is only required if folder actually exists.

Attachment not added (general error): "Plugins.zip"

5 comments
Comment actions Permalink

Hi Jakob,

GREAT job!!
Can you please send me your source code? Thanks in advance.

Josef


"Jakob Christensen" <jc@sitecore.net> schrieb im Newsbeitrag
news:596fcca0d88c959df46f028e5@news.jetbrains.com...
Hi all

Here is a small set of 6 plugins, that I have made for ReSharper. Two of
them have been posted before.

To install them, unzip the attached file into the Plugins folder.

No guarantees for either performance or actually working for you :)

Anybody want the source code, I'll be happy to post it.

--Jakob

CatchExceptions:
-


Context action for generating try..catch statements. The action looks in the
XML comments for documented exceptions and generate a catch clause for each.

FavoriteFiles:
-


A simple Favorite File list where you can define often used files. The files
are stored relative to the project, so if you have multiple solutions using
the same project, you only have to define it once.

Pops up when you press CtrlShiftAlt+E and you can use numerics (1-9) to
access the files in the list.

BTW: this source fore this plugin shows how to use the brilliant JetMenu.

Introduce String Constant:
-


Converts a string to a constant. The constant can either be located in the
current file or in another class. Useful if you have a class that contains
all your string constants. The classes can be configured in the JetBrains
Options dialog.

Parameter Asserts:
-


Generate assert statements for method parameters. This has been posted
before. Only usable, if your coding practice requires you to assert all
input parameters to methods. This version contains a number of enhancements.

String.Empty
-


Converts "" to string.Empty. Has been posted before.

Synchronize Namespace With File Path
-


Our code practice requires that the namespace and file path must match. So
the class "MyProject.Namespace1.Class" must be in a file in the folder
"MyProject\Namespace1". The context action allow you to either change the
namespace or move the file.

The first part of the namespace is handled specially, so it is only required
if folder actually exists.


0
Comment actions Permalink

Hello Hahnl,

Thanks :)

I have attached all of the source.

--Jakob

Hi Jakob,

>

GREAT job!!
Can you please send me your source code? Thanks in advance.
Josef

>

"Jakob Christensen" <jc@sitecore.net> schrieb im Newsbeitrag
news:596fcca0d88c959df46f028e5@news.jetbrains.com...
Hi all
Here is a small set of 6 plugins, that I have made for ReSharper. Two
of them have been posted before.

>

To install them, unzip the attached file into the Plugins folder.

>

No guarantees for either performance or actually working for you :)

>

Anybody want the source code, I'll be happy to post it.

>

--Jakob

>

CatchExceptions:
-----------------
Context action for generating try..catch statements. The action looks
in the
XML comments for documented exceptions and generate a catch clause for
each.
FavoriteFiles:
-------------
A simple Favorite File list where you can define often used files. The
files
are stored relative to the project, so if you have multiple solutions
using
the same project, you only have to define it once.
Pops up when you press CtrlShiftAlt+E and you can use numerics (1-9)
to access the files in the list.

>

BTW: this source fore this plugin shows how to use the brilliant
JetMenu.

>

Introduce String Constant:
--------------------------
Converts a string to a constant. The constant can either be located in
the
current file or in another class. Useful if you have a class that
contains
all your string constants. The classes can be configured in the
JetBrains
Options dialog.
Parameter Asserts:
------------------
Generate assert statements for method parameters. This has been posted
before. Only usable, if your coding practice requires you to assert
all
input parameters to methods. This version contains a number of
enhancements.
String.Empty
------------
Converts "" to string.Empty. Has been posted before.
Synchronize Namespace With File Path
-------------------------------------
Our code practice requires that the namespace and file path must
match. So
the class "MyProject.Namespace1.Class" must be in a file in the folder
"MyProject\Namespace1". The context action allow you to either change
the
namespace or move the file.
The first part of the namespace is handled specially, so it is only
required if folder actually exists.

>

Attachment not added (general error): "ReSharperSource.zip"

0
Comment actions Permalink

Hello,

It looks like the attachment go blown away; could you post it up on google code hosting or some such?  I'm really interested in the global namespace-syncing tool.

Thanks!

0
Comment actions Permalink

Hello Chris,

All of the plugins got wrapped into Agent Johnson.

http://code.google.com/p/agentjohnsonplugin/

Plus some extras :-).

--Jakob

Hello,

It looks like the attachment go blown away; could you post it up on
google code hosting or some such? I'm really interested in the global
namespace-syncing tool.

Thanks!

---
Original message URL:
http://www.jetbrains.net/devnet/message/5230752#5230752



0
Comment actions Permalink

I'm not seeing a namespace rename context action anywhere?  Is it in this package?

Thanks.

0

Please sign in to leave a comment.