I have Edit.MoveControlDown bound to Ctrl+Down
if I record a macro and use this shortcut combo, it does not currently record. Just plain Down Arrow by itself records fine.
I have VS 2013 and the latest VC
I just verified that ctrl+right/left map to Edit.WordNext/Previous and are recorded properly.
is it that you are looking for an event for the carat or text to change? with MoveControlDown it moves the entire text field down and the carat stays relative to the text.
OK, thank you Vlasov.
Seattle Seahawks won the super weed bowl !
After the game, a 30 foot high bonfire was lit
next door to me. Burning couches.
It nearly caught trees on fire.
FireFighters put it out ASAP.
I want -all- file types to open in
the text editor with -nothing-but-
the per glyph font/colors I specify.
For example, I want all digits, everywhere,
to have a certain color/font.
And I want to do this by handling certain events,
in a Visual Studio 2013, "Visual Commander" extension.
Problem is, I don't know what those events are,
or how to handle them.
Can you help me with this, Sergey Vlasov ?
You probably want to create a Visual Studio Editor Classifier. It uses MEF for registration that is not currently supported by Visual Commander.
There is a Visual Studio SDK template for a classifier, if you want to get started writing it yourself, see http://msdn.microsoft.com/en-us/library/vstudio/dd885492.aspx
And there is the open source KeywordClassifier Visual Studio Extension that already allows you to customize which keywords get highlighted, see https://github.com/tomasr/KeywordClassifier
Hi, Appologies as I'm new to this.
I'm importing a macro I used alot in VS2010,
but have a problem referencing "ActiveDocument".
I have the following Imports to the Public Module:
and then in a sub I have:
selection = ActiveDocument.Selection
which it can't do.
Any ideas Please would be appreciated.
For a command, I had it reference a dll and it calls a subroutine in that dll. The Save and Compiles successfully.
When I try to run it, I get the error System.IO.FileNotFoundException: Could not load file or assembly 'Company.EnvDTE.Macros' ...
Any idea what could be causing this?
I upgraded to 1.3. Now I get a different error:
The type initializer for 'Company.EnvDTE.Macros.IO' threw an exception. COMException.... Invalid class string HRESULT: 0x800401F3
Any idea what it could be?
I'm running the latest 1.2.1. When I create a simple C# command, it fails with the error: 'object' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
public class C : VisualCommanderExt.ICommand
public void Run(EnvDTE80.DTE2 DTE, Microsoft.VisualStudio.Shell.Package package)
string code = DTE.ActiveDocument.Selection.Text;
The same equivalent in VB works. Is there a known issue with the C# implementation?
What would you think about changing this to a folder inside HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\VisualStudioLocation?
This would ensure that people who back up their Visual Studio folder can also back up their macros.
The VisualStudioLocation folder looks like mostly for VS itself. Plus the current location allows commands sharing between all installed VS versions.
For backup you can create a hard link with mklink from the current .vcmd file location to your folder.