Enable macros in Visual Studio - visual-studio-2005

Using Visual Studio 2005. I'm trying to follow the tips in this blog post. Specifically, trying to perform an action on the BuildEvents_OnBuildProjConfigDone and OutputWindowEvents_PaneUpdated events.
But the macros don't appear to work. Introducing a deliberate syntax error into the VBA code doesn't generate an error either, which suggests that the macro is not being run at all.
In Tools > Options > Environment > Add-in/Macros Security, the option Allow macros to run is enabled.
How do you enable macros? This is a C# project and this MSDN article appears relevant but only refers to C++.

Related

Visual Studio 2017 IntelliSense not working for Fortran language with Intel Parallel Studio

I recently re-installed Visual Studio due to some issues with the integration with Intel Parallel Studio. After reinstalling both, the integration issues are gone, but now for some reasons I have two issues. One is minor: automatic outlining has been disabled by default, and I have to re-enable it every time I start VS using Edit > Outlining > Begin Automatic Outlining (or something similar). Annoying, but at least it works.
The second issue however is that IntelliSense is not working. Under Edit > IntelliSense, Toggle Completion Mode is grayed out. After reading the answer to Visual Studio C# IntelliSense not automatically displaying, I followed the instructions and went to Tools > Options > Text Editor > Fortran. However all three of the check boxes are grayed out. Is this a known issue and does anyone know how to fix it?
Since it is also related to the third party tool, I suggest you post the issue to the IntelĀ® Visual Fortran Compiler forum, there you would get direct solution like this case:
https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/733588
In addition, a extension tool Fortran CodeNav which also add the IntelliSense feature, you could also use it in your side.
https://marketplace.visualstudio.com/items?itemName=TiemenSchreuder.FortranCodeNav

Visual Studio 2012 VC++ debugging

I am using Visual Studio 2012 VC++ for debugging some of the code. Is it possible to log the list of functions the program is hitting and provide a snapshot of the variable when it hits at the specific point. I am trying to place breakpoint at many places and trying to print the information of the variable. Is there a easy way to do that?? like an extension or plugin or macros..
I tried to search for macros, but I don't find that under tools. Seems that for VC++ they don't provide that option either...

Can I customize autoexp.dat to enable visualization of a QT QDomNode in Visual Studio 2010 Debugger

We are doing QT development in Visual Studio 2010. I would like to be able to see the contents of A QDomNode variable in the Visual Studio Debugger.
It is possible to customize the display of variables in the Visual Studio Debugger by customizing the autoexp.dat file. The QT Add in for Visual Studio adds many customizations to autoexp.dat that enable you to see relevant information for QT classes, and there are a number of discussions on customizing the autoexep.dat that include a customization for QDomNode that appear to originate from this Daniel Albuschat blog entry QT Debugging with Visual Studio 2005. However, QDomNode is still not visible to me even with the described modifcations to autoexp.dat.
I notice that QDomNode uses a member variable QDomNodePrivate* impl as a PIMPL to hide its data members behind. This is similar to the "d" pointer commonly used in QT, notably in QString, which is able to see data correctly... Any pointers would be appreciated...
A simple preview would be:
QDomNode|*::QDomNode{
preview ($e.impl->name)
}
But this does not really work, because the debugger can see the structure of impl only when it is "inside" qdom.cpp wich contains the definition of QDomNodePrivate. You can test this by stepping inside some QDom method. One "hacky" solution would be to copy the class definition of QDomNodePrivate into some header file that you include in your program.
And don't forget: You have to be Administrator to successfully edit autoexp.dat!

why is rename not currently available

I have seen and used a rename feature in Visual Studio 2010.
However when editing code in C++ mode, I see no "Refactor" menu, and the CTRL+R CTRL+R command produces the following error message:
The key combination (Ctrl+R, Ctrl+R) is bound to command (Rename...) which is not currently available.
Eclipse seems to have got this right. Is there no rename feature in VS 2010 for VC++?
Is there no rename feature in VS 2010 for VC++?
That is correct. None of the refactoring features work for C++ projects (C# and VB only). If you want these things, you need to use a third party plugin, such as Visual Assist.

How to modify JavaScript Intellisense by using Visual Studio Integration Package?

I need to modify some logic of Javascript Intellisense on Visual Studio 2008 SP1 like some build-in function such as ScriptEngine, ScriptEngineBuildVersion and etc. Moreover, I need to dynamically generate function depend on opened docuement.
In Visual Studio, language services are provided via VSPackages. Most built-in language services in Visual Studio 2008 do not really offer any kind of extensibility or customization that would enable what you're trying to achieve.
There are a couple of options you could consider though:
Write your own Javascript language service. Obviously, this would be non-trivial, but it would allow you to get the precise behavior you're after. Language services are responsible for parsing the file to provide colorization, quick info, Intellisense, auto-completion, and other features to the core text editor. The simplest example of a language service is a sample in the Visual Studio 2008 SDK 1.1 called the RegExLangService. There is also a detailed walkthrough for the sample.
You could attempt implementing either an Add-in or a VSPackage which would insert/manipulate text in the editor based on the contents of the open document. Your question doesn't really say exactly what kind of behavior you need (other than dynamically generating a function). This would certainly be possible with the Visual Studio SDK and much less work than writing your own Javascript language service.
Good Luck!

Resources