T O P I C R E V I E W |
znakeeye |
Posted - Dec 09 2008 : 04:47:18 AM Consider this simple example. |text
Now I want to make it bold and type '<strong>'. VC++ produces this: <strong>|</strong>text
I find this very annoying! It would be better if paired tags moved the word _directly_ after the cursor inside the tags. Hence, if there was a whitespace before "text", it would not perform this.
<strong>|text</strong>
I believe VAX could accomplish this quite easily. |
1 L A T E S T R E P L I E S (Newest First) |
accord |
Posted - Dec 09 2008 : 3:59:35 PM You can do it by VA Snippets, I wrote this one for you:
<$tag$>$selected$$end$</$tag$>
It will automatically appear in the menu:
Right click on selection -> Surround With (VAX)
Ok, it's a bit slow to do, but we can use a trick to speed it up: if you overwrite the content of snippet "#ifdef (VA X)" then you can "run" it by pressing the # key:
1. Select the text (if your text is a word then it can be done by double-clicking on it) 2. Press # 3. Type your tag 4. Press ENTER
You can access snippet editor here:
VA Options -> Advanced -> Suggestions -> Edit VA Snippets (button) |
|
|