有时我更喜欢在声明变量后添加注释。例如:
bool isOverhwndChild1; // This is just an example to make my question clear and you can understand.
bool isOverhwndChild2; // This is just an example to make my question clear and you can understand.
bool isOverhwndChild3; // This is just an example to make my question clear and you can understand.
bool isOverhwndChild4; // This is just an example to make my question clear and you can understand.
我安装了Visual Assist X
.
如果我将鼠标移到这些变量上,则会出现一个工具提示并显示注释。但是如果注释很长,工具提示的宽度就会很大。
我不想这样写,因为它分散了我对变量声明的注意力:
// This is just an example
// to make my question clear
// and you can understand.
bool isOverhwndChild1;
// This is just an example
// to make my question clear
// and you can understand.
bool isOverhwndChild2;
// This is just an example
// to make my question clear
// and you can understand.
bool isOverhwndChild3;
// This is just an example
// to make my question clear
// and you can understand.
bool isOverhwndChild4;
有没有办法在 VS2010 的注释中添加换行符,以便工具提示显示多行?