Visual Studio: have region description be based on text within the region -
with method this:
#region _description_ [author("a")] [city("b")] [year("2009")] #endregion void method() { }
i'd _description_
reflect value of author
method attribute.
any ideas on how implement this? reason have many attributes, long, contain them within region. i'd region description reflect value of 1 attribute in particular, automatically (otherwise need remember update both each time).
i'm using vs 2010. thanks.
i don't think doable @ language level. #region preprocessor directive in c#, , c# spec not offer this.
visualstudio 2010 implemented feature when mouse on collapsed block, show first several lines of block. otherwise way maybe this
#region [author("a")]
Comments
Post a Comment