Standard Header variables

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!

Best Answers

Answers

  • 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
  • mhutchmhutch USMember, Xamarin Team Xamurai
    edited January 2015 Accepted Answer

    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.

Sign In or Register to comment.