xps / VSTextMacros

An extension for Visual Studio 2012-2022 that brings back support for macros in text/code editors
https://marketplace.visualstudio.com/items?itemName=XavierPoinas.TextMacrosforVisualStudio201220132015
Other
69 stars 20 forks source link

Playback macro to end of document #42

Closed peakpeak-github closed 2 years ago

peakpeak-github commented 3 years ago

Playback macro to end of document menu item is missing but exists in VSTextMacros.vsct. Can you enable it?

xps commented 3 years ago

I don't see this option in the vsct file. Are you sure?

As far as I know, this isn't implemented, so it is a new feature request.

It seems that it would be tricky to implement because there is no guaranty that the cursor ends further down the document after a macro is executed (a macro can do anything including moving the cursor up).

peakpeak-github commented 3 years ago
      <Button guid="guidMacrosCmdSet" id="idPlaybackMacroToEndOfDocument" priority="0xF204" type="Button">
        <Parent guid="guidMacrosCmdSet" id="idMacrosGroup" />
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DontCache</CommandFlag>
        <CommandFlag>DefaultDisabled</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Strings>
          <CommandName>PlaybackMacroToEndOfDocument</CommandName>
          <LocCanonicalName>PlaybackMacroToEndOfDocument</LocCanonicalName>
          <ButtonText>Playback macro to end of document</ButtonText>
        </Strings>
      </Button>
xps commented 3 years ago

This code snippet does not appear anywhere in this file: https://github.com/xps/VSTextMacros/blob/master/VSTextMacros.vsct

Are you looking at a branch/fork?