locked
Standard Header variables RRS feed

  • Question

  • User22751 posted

    Hi,

    How may I know which variables are available in the Standard Header preferences pane ? (I've found a bug report related to this question : https://bugzilla.xamarin.com/show_bug.cgi?id=320)

    Thanks!

    Monday, September 23, 2013 7:31 AM

Answers

  • User1044 posted

    This is the current list of variables:

    https://github.com/mono/monodevelop/blob/master/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.StandardHeader/StandardHeaderService.cs

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, September 23, 2013 5:21 PM
  • User28 posted

    There are also the following values built into the StringParserService:

    $(Date), $(Time), $(Year), $(Month), $(Day), $(Hour), $(Minute), $(Second)

    Date/time values, with optional .NET date format string, e.g. $(Date:u) is the date and time in universal sortable format, but $(Date) uses the default format.

    $(User)

    Current user's username

    $(Env:NAME)

    Environment variable $NAME, e.g. $(Env:PATH) is the $PATH environment variable.

    $(Property:KEY)

    Xamarin Studio user preference key $KEY

    All values are case insensitive, and you can use curly braces or round brackets, e.g. $(Foo) is equivalent to ${FOO}. Additionally, you can use .NET numeric format strings with any numeric value, and special upper or lower format strings to uppercase or lowercase string value.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, September 24, 2013 7:15 PM

All replies

  • User1044 posted

    This is the current list of variables:

    https://github.com/mono/monodevelop/blob/master/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.StandardHeader/StandardHeaderService.cs

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, September 23, 2013 5:21 PM
  • User22751 posted

    Thanks !

    For those who don't want to read the beautiful MonoDevelop source code, here is a list :

    • FileName
    • FileNameWithoutExtension
    • Directory
    • FullFileName
    • AuthorName
    • AuthorEmail
    • CopyrightHolder
    Monday, September 23, 2013 6:16 PM
  • User28 posted

    There are also the following values built into the StringParserService:

    $(Date), $(Time), $(Year), $(Month), $(Day), $(Hour), $(Minute), $(Second)

    Date/time values, with optional .NET date format string, e.g. $(Date:u) is the date and time in universal sortable format, but $(Date) uses the default format.

    $(User)

    Current user's username

    $(Env:NAME)

    Environment variable $NAME, e.g. $(Env:PATH) is the $PATH environment variable.

    $(Property:KEY)

    Xamarin Studio user preference key $KEY

    All values are case insensitive, and you can use curly braces or round brackets, e.g. $(Foo) is equivalent to ${FOO}. Additionally, you can use .NET numeric format strings with any numeric value, and special upper or lower format strings to uppercase or lowercase string value.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, September 24, 2013 7:15 PM