Integrate with MS Visual Studio
VEDIT can be integrated with Microsoft's Visual Studio (tm); you can then press a hot-key inside Studio to open the current file in VEDIT at the same cursor position. When you close the file in VEDIT, the modified file is automatically reloaded into Studio.
Here are the instructions for configuring Visual Studio 6.0 to use VEDIT as an optional editor. Many thanks to customer David Hawkins for sharing these steps with us.
>>> To integrate VEDIT with Visual Studio 6.0:
- Select Tools -> Customize from the Visual Studio menu.
- Select the Tools tab.
- In the "Menu contents" box, scroll down to the blank entry at the end of the list and double-click it. Then enter "VEDIT". This name will appear in the Tools menu.
- In the "Command" box, enter the full pathname to the vpw.exe file. E.g.:
c:\vedit\vpw.exe
(Note: The ".exe" is necessary.) - In the "Arguments" box, enter:
-cGC($(CurCol)) "$(FilePath)" -l$(CurLine)
Notes: The quotes are required as shown. The order of entries is important. That's a lower case L in the final clause. (You should probably cut&paste this critical line.)
- Use the "Up arrow" tool to move the VEDIT entry to the top of the list. You don't need to do this, but it simplifies counting in step 9.
- Still in the Customize dialog box, select the Keyboard tab.
- In the "Categories" box, select "Tools".
- In the "Commands" box, scroll down to "User Tool 1". (That's why we moved it to the top of the list.)
- The "Editor" box should display "Text".
- Click in the "Press new shortcut key" box. Then type your desired shortcut. We suggest using <Ctrl-T> or <Ctrl-Q>. You can use any suitable key, but since most of the control key combinations are already assigned as shortcuts in MSVC, pick one that does not disable anything you use regularly.
- Press [Assign] to save your new setting and and then [Close] the dialog box.
- Select Tools -> Options from the Visual Studio menu. Select the Editor tab. Check the box for "Automatic reload of externally modified files".
- Press [Ok] to close the dialog box and save your new setting. This completes the configuration of Visual Studio.
After a compile, click on the error to take you to the offending spot in the code. As usual, this will show in the MSVC source window. Now, press your shortcut, e.g. <Ctrl-T>, and the current file will open in VEDIT with the cursor at the same position as in the MSVC window. When you exit VEDIT, the file will be reloaded into MSVC and show the modified file in the source window.
