visual studio - Is there a simple way to create a custom VS action for personalised comments? -


feel free massively re-word question.

basically, i'm stripping out huge portion of large framework - involves lot of commenting. can find of later batch commenting , copy-pasting marker before each block this:

//myinitials_remove /*if (this code rubbish) {     comment out; }*/ 

i'd create function 1 button press or key combination batch comment out selected code , automatically place tag @ beginning. instead of opening comment being '//' or '/*' 'myinitials_remove//' or 'myinitials_remove/*'

is possible?

edit thinking it, wouldn't mind if every single line began 'myinitials_remove//'.

i think looking this:

public sub cstylecomment()     dim selection textselection = dte.activedocument.selection     selection.toppoint.createeditpoint.insert("//myinitials_remov" & vbcrlf & "/*")     selection.bottompoint.createeditpoint.insert("*/") end sub 

maybe version more suitable (automatic translation):

public sub cstylecomment()     dim selection textselection = dte.activedocument.selection     selection.toppoint.createeditpoint.insert("//myinitials_remov" & vbcrlf & "/*")     selection.bottompoint.createeditpoint.insert("*/") end sub 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -