For my variables I wanted to add the comment in the same line, but it didn't seem to work without unwanted indenting. I added the follwing lines at the beginning of "private void InsertCommentBlock(TextPoint textPoint, string[] commentBlock)":
if (commentBlock.Length == 0)
{
return;
}
The inline comment is added "manually", so the commentBlock is empty:
For my variables I wanted to add the comment in the same line, but it didn't seem to work without unwanted indenting. I added the follwing lines at the beginning of "private void InsertCommentBlock(TextPoint textPoint, string[] commentBlock)":
if (commentBlock.Length == 0)
{
return;
}
The inline comment is added "manually", so the commentBlock is empty:
EnvDTE.EditPoint ep2 = codeElem.GetEndPoint(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter).CreateEditPoint();
ep2.Insert("\t\t" + mFirstLineTag + "< @brief A variable. " + mLastLineTag);
Just wanted to let you know, maybe there was an easier solution to my problem anyway ;)