Add line to comment in Visual Studio C++ -
i'm looking rather specific.
let's define variable, , add together comment it.
#define arduino_read_q0 //read pins 22-29
now, time start typing arduino_read_q0, pops in visual studio's list of available values, , when hover on it, comes tooltip saying "read pins 22-29"
is there way add together line tooltip? thought of this:
#define arduino_read_q0 /* read pins 22-29 homecoming 1b */
however, prefer remain on single line when define it.
to give thought of i'm trying do, imagine looking this:
#define arduino_read_q0 // read pins 22-29 /n homecoming 1b
this way can "next line" without making mess of having 2 lines per #define.
it's sort of formatting preference. i'm have lot of #defines.
if using visual studio 2013 there special xml tags can utilize this.
/// <summary>read pins 22-29</summary> #define arduino_read_q0
this display "read pins 22-29" in intellisense tooltip when hover arduino_read_q0
.
you can find more documentation details on msdn:
http://msdn.microsoft.com/en-us/library/ms177227.aspx http://msdn.microsoft.com/en-us/library/ms177226.aspx
note: may work on older version of visual studio have 2013 have on laptop @ moment.
c++ visual-studio syntax formatting
No comments:
Post a Comment