File Header Text

Hello,

I suggest to create some "variables" for the File Header Text like:

%Project% ... projectname
%LastModified% ... date of last modification
%File% ... filename
%Class% ... classname
%Lines% ... number of lines
etc.

Do you think that this "easy to implement" feature will be once upon a time
part of ReSharper?

Regards
Josef

6 comments
Comment actions Permalink

Personally, I do not think this is a good idea.
Such metrics in file should be updated on every document change/refactoring.
Better, these should be evaluated on request by some tool.

Initially, "File Header" feature is intended to reflect copyright notice

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Hahnl Josef" <hahnl@aon.at> wrote in message
news:g11j5f$j3u$1@is.intellij.net...

Hello,

>

I suggest to create some "variables" for the File Header Text like:

>

%Project% ... projectname
%LastModified% ... date of last modification
%File% ... filename
%Class% ... classname
%Lines% ... number of lines
etc.

>

Do you think that this "easy to implement" feature will be once upon a
time part of ReSharper?

>

Regards
Josef



0
Comment actions Permalink

Disagree.

My copyright text is as follows;

#region License Details
///////////////////////////////////////////////////////////////////////////////////////////////////
// Constants.cs - Part of SharpSTS
//
// SharpSTS is an open source security token service framework for
Information Cards.
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// (c) Copyright 2007 Barry Dorrans, http://sharpsts.com/
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#endregion

So, as you can see I have the filename in there, and the year and the
project name.

Now project name I don't care about, if header text is applicable on a per
project basis, but filename and year should be parameterised to make this
useful for me (and then, if you're being picky, discover it on a rename).


"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:g11mkb$shm$1@is.intellij.net...

Personally, I do not think this is a good idea.
Such metrics in file should be updated on every document
change/refactoring.
Better, these should be evaluated on request by some tool.

>

Initially, "File Header" feature is intended to reflect copyright notice

>

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Hahnl Josef" <hahnl@aon.at> wrote in message
news:g11j5f$j3u$1@is.intellij.net...

>> Hello,
>>
>> I suggest to create some "variables" for the File Header Text like:
>>
>> %Project% ... projectname
>> %LastModified% ... date of last modification
>> %File% ... filename
>> %Class% ... classname
>> %Lines% ... number of lines
>> etc.
>>
>> Do you think that this "easy to implement" feature will be once upon a
>> time part of ReSharper?
>>
>> Regards
>> Josef
>


0
Comment actions Permalink

Barry Dorrans wrote:

Disagree.

My copyright text is as follows;

#region License Details
//////////////////////////////////////////////////////////////////////
///////////////////////////// // Constants.cs - Part of SharpSTS
//
// SharpSTS is an open source security token service framework for
Information Cards. //
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// (c) Copyright 2007 Barry Dorrans, http://sharpsts.com/
//
//////////////////////////////////////////////////////////////////////
///////////////////////////// #endregion

So, as you can see I have the filename in there, and the year and the
project name.

Now project name I don't care about, if header text is applicable on
a per project basis, but filename and year should be parameterised to
make this useful for me (and then, if you're being picky, discover it
on a rename).


"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote
in message news:g11mkb$shm$1@is.intellij.net...

Personally, I do not think this is a good idea.
Such metrics in file should be updated on every document
change/refactoring. Better, these should be evaluated on request
by some tool.

Initially, "File Header" feature is intended to reflect copyright
notice

-- Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>"Hahnl Josef" <hahnl@aon.at> wrote in message
news:g11j5f$j3u$1@is.intellij.net...

Hello,

I suggest to create some "variables" for the File Header Text
like:

%Project% ... projectname
%LastModified% ... date of last modification
%File% ... filename
%Class% ... classname
%Lines% ... number of lines
etc.

Do you think that this "easy to implement" feature will be once
upon a time part of ReSharper?

Regards
Josef



+1 for that, at least %File% and %Year% would be nice.

--

0
Comment actions Permalink

I second this request. It would be nice if file headers could utilize the
same variables as the live templates--currently I include my license header
in the R# class/interface/struct templates. My header includes file name
and the year component of the current date (copyright date).

Mike

"Peter Sulek" <terrorix@centrum.sk> wrote in message
news:g15pac$hrg$1@is.intellij.net...

Barry Dorrans wrote:

>
>> Disagree.
>>
>> My copyright text is as follows;
>>
>> #region License Details
>> //////////////////////////////////////////////////////////////////////
>> ///////////////////////////// // Constants.cs - Part of SharpSTS
>> //
>> // SharpSTS is an open source security token service framework for
>> Information Cards. //
>> // This source is subject to the Microsoft Permissive License.
>> // Please see the License.txt file for more information.
>> // All other rights reserved.
>> //
>> // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF
>> ANY // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
>> TO THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
>> // PARTICULAR PURPOSE.
>> //
>> // (c) Copyright 2007 Barry Dorrans, http://sharpsts.com/
>> //
>> //////////////////////////////////////////////////////////////////////
>> ///////////////////////////// #endregion
>>
>> So, as you can see I have the filename in there, and the year and the
>> project name.
>>
>> Now project name I don't care about, if header text is applicable on
>> a per project basis, but filename and year should be parameterised to
>> make this useful for me (and then, if you're being picky, discover it
>> on a rename).
>>
>>
>> "Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote
>> in message news:g11mkb$shm$1@is.intellij.net...
>> > Personally, I do not think this is a good idea.
>> > Such metrics in file should be updated on every document
>> > change/refactoring. Better, these should be evaluated on request
>> > by some tool.
>> >
>> > Initially, "File Header" feature is intended to reflect copyright
>> > notice
>> >
>> > -- Eugene Pasynkov
>> > Developer
>> > JetBrains, Inc
>> > http://www.jetbrains.com
>> > "Develop with pleasure!"
>> >"Hahnl Josef" <hahnl@aon.at> wrote in message
>> news:g11j5f$j3u$1@is.intellij.net...
>> > > Hello,
>> > >
>> > > I suggest to create some "variables" for the File Header Text
>> > > like:
>> > >
>> > > %Project% ... projectname
>> > > %LastModified% ... date of last modification
>> > > %File% ... filename
>> > > %Class% ... classname
>> > > %Lines% ... number of lines
>> > > etc.
>> > >
>> > > Do you think that this "easy to implement" feature will be once
>> > > upon a time part of ReSharper?
>> > >
>> > > Regards
>> > > Josef
>> >
>> >
>

+1 for that, at least %File% and %Year% would be nice.

>

--


0
Comment actions Permalink

Hello,
I'm relatively new to ReSharper.  Has this functionality been added?  No big deal if not--I'm just trying to get ReSharper to be able to generate StyleCop-compliant file headers.

Edit: nevermind, it looks like StyleCop for ReSharper (http://www.codeplex.com/StyleCopForReSharper) does exactly this!

0
Comment actions Permalink

In the cold weather, the UGG boots are considered as the best shoes.More and more people like wearing the UGG boots such as the http://sell-ugg.com/UGG-Classic-Metallic-5812/c9/index.html.With its development ,the UGG boots have lauched different kinds of boots into the fashion market,including the http://uggboots-euro.com/UGG-Classic-Short-Boots/c3/index.html and the http://uggboots-euro.com/UGG-Women%27s-ighkoo/c23/index.html.However,in the fashion world,if you want to be more attractive and elegant,the beautiful shoes are not enough.You have to choose the best stylish handbag to match your shoes.Therefor,the designer replica handbags are very necessary.If you want to buy the best designer cheap handbags,i would like to introduce two famous brand handbags to you.I think there must be one handbag is your favorite.One is the famous brand http://www.famousbrandbag.com/Versace/c40/index.html,the other is the Ferragamo Handbags.Both of them are the famous brand in the world.Their quality are very good.

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

0

Please sign in to leave a comment.