feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jun 22 2004 : 5:48:54 PM
|
i suspect you cannot do this with VAX, at least not easily. you can add double slash // to the beginning of a selected set of lines, but i don't know of any setting for how many slashes to insert. i am fairly certain it is hard coded.
personally i would just do this using search and replace in vim, www.vim.org
however, this is a bit extreme unless you are already experienced with vim
using VS .NET 2002 and a new unnamed cpp file in my current project, the following works wonders
select the lines you want to change press ctrl_h for the find and replace dialog at the bottom tick "use" and pick "regular expressions" in find what put the single character ^ in replace with put the three slashes followed by a space, "/// " now press the replace all button
for a more complex search and replace i would need to check the online help for VS's version of regular expressions. everyone does it slightly differently, just to keep you on your toes |
zen is the art of being at one with the two'ness |
|
|