Helixoft

Helixoft Blog

Peter Macej - lead developer of VSdocman - talks about Visual Studio tips and automation

VS Macro for Pasting Long Text as String

January 5th, 2006

Did you ever want to write very long string constant in your source code? You surely did if you wanted to display longer text in message box, for example. Or you wanted to create a macro which generates some longer source code. In this case you needed the code template stored in a string if [...]

Changing Documents Tabs Order in VS 2005

December 27th, 2005

VS 2005 introduced new feature which confuses many people. Newly opened documents are placed in reverse order - to the left of already opened pages and not to the right as it used to be in VS 2002/2003 and as we know it from majority of programs that use tabbed interface. Existing documents are scrolled [...]

Sharing a Source File Across Multiple Projects

December 20th, 2005

"How can I share one source code file across several projects? I want to have this file on one place only and use it in multiple projects so when I modify it in one project, the changes get automatically reflected in all projects. When I add existing file to the project, a local copy is [...]

Debugging a macro in VS

December 19th, 2005

I've just played with one macro and wanted to debug it. I placed a breakpoint and ran the macro. Macro worked fine but it didn't stop on breakpoint. It took me some time to realize that you must explicitly enable debugging in Macros IDE:

In macros IDE, go to menu Debug and select Enable Debugging.

You can [...]

Assigning a Keyboard Shortcut to Macro in VS

December 15th, 2005

Last time I forgot to mention one important thing - how to assign a keyboard shortcut to your macro. Often you don't need any button for your macro, the shortcut is enough. Or you can have both. As I already wrote, macro is similar to any named command. So to assign a shortcut to it:

Go [...]