All Projects → xps → VSTextMacros

xps / VSTextMacros

Licence: other
An extension for Visual Studio 2012-2022 that brings back support for macros in text/code editors

Programming Languages

C#
18002 projects
powershell
5483 projects

Projects that are alternatives of or similar to VSTextMacros

CommitFormatter
A Visual Studio extension that automatically formats your Git commit message in team explorer
Stars: ✭ 16 (-74.6%)
Mutual labels:  visual-studio
ByteScout-SDK-SourceCode
ALL source code samples for ByteScout SDKs and Web API API products.
Stars: ✭ 24 (-61.9%)
Mutual labels:  visual-studio
chat-app
Multithreading TCP server and client communicating over TCP/IP - Windows Forms Application.
Stars: ✭ 39 (-38.1%)
Mutual labels:  visual-studio
clangbuilder
Building Clang ♡ Utility and Environment
Stars: ✭ 101 (+60.32%)
Mutual labels:  visual-studio
DisposableFixer
This is a Visual Studio Extension and NuGet package that should identify and fix problems as memleaks while using IDisposables.
Stars: ✭ 37 (-41.27%)
Mutual labels:  visual-studio
winrar-keygen
Principle of WinRAR key generation.
Stars: ✭ 398 (+531.75%)
Mutual labels:  visual-studio
System-Center-Operations-Manager-API
Microsoft System Center Operations Manager (SCOM) Web API
Stars: ✭ 40 (-36.51%)
Mutual labels:  visual-studio
Shareaza
Shareaza is a peer-to-peer client for Windows that allows you to download any file-type found on several popular P2P networks.
Stars: ✭ 103 (+63.49%)
Mutual labels:  visual-studio
EU4ConsolePatcher
A simple memory patcher which enables the internal developer console in ironman mode
Stars: ✭ 55 (-12.7%)
Mutual labels:  visual-studio
CSharpMethodsCodeSnippets
Code snippets for C# methods.
Stars: ✭ 44 (-30.16%)
Mutual labels:  visual-studio
vscode-theme-gruvbox-minor
Gruvbox theme for Visual Studio Code
Stars: ✭ 17 (-73.02%)
Mutual labels:  visual-studio
StackOverflowQuickLaunch
A Quick Launch search provider for searching Stack Overflow in Visual Studio
Stars: ✭ 20 (-68.25%)
Mutual labels:  visual-studio
CUDAfy.NET
CUDAfy .NET allows easy development of high performance GPGPU applications completely from the .NET. It's developed in C#.
Stars: ✭ 56 (-11.11%)
Mutual labels:  visual-studio
RobotArmHelix
3D Simulation, forward and inverse kinematics of a robotic arm in C# using WPF and helix-toolkit
Stars: ✭ 84 (+33.33%)
Mutual labels:  visual-studio
JetScreenRecorder
A simple screen capture video recorder using the AfrogeNet ffmpeg DLL and windows forms with a flat ui.
Stars: ✭ 70 (+11.11%)
Mutual labels:  visual-studio
IncludeToolbox
Visual Studio extension to format, prune, and inspect include directives.
Stars: ✭ 48 (-23.81%)
Mutual labels:  visual-studio
vs-autocomment
A visual studio plugin that automatically inserts comments
Stars: ✭ 30 (-52.38%)
Mutual labels:  visual-studio
1 First Steps
Setup Unity and Visual Studio on Mac and PC. Use Unity's editor to position, rotate and scale game objects. Understand prefabs. Write very basic code, and use Unity's Console. http://gdev.tv/cu2github (REF: FS_CU2)
Stars: ✭ 23 (-63.49%)
Mutual labels:  visual-studio
kontent-boilerplate-net
Kontent.ai Boilerplate for development of ASP.NET Core MVC applications.
Stars: ✭ 29 (-53.97%)
Mutual labels:  visual-studio
PowerMode
The Power Mode extension for Visual Studio.
Stars: ✭ 96 (+52.38%)
Mutual labels:  visual-studio

THE CURRENT VERSION WORKS WITH VISUAL STUDIO 2019-2022

For Visual Studio 2012 to 2017, please download and install this version: https://github.com/xps/VSTextMacros/releases/download/1.12/VSTextMacros-1.12.vsix

What is it?

An extension for Visual Studio 2012-2017 that brings back support for macros in text/code editors. These macros can be used to automate repetitive text editing tasks.

You may have used such macros in previous versions of Visual Studio. Indeed, macros used to be supported and removed in Visual Studio 2010.

Although macros used to be very sophisticated at the time, letting you control almost any feature of Visual Studio, this extension only aims at supporting the text editing part of macros.

And if you have not used Visual Studio macros before, you may have used them in other text editors such as Notepad++ or Sublime Text. If you have, then you already know how to use this extension.

Download

You can download the VSIX installer from the Visual Studio Marketplace.

How does it work?

After installing this extension, you will find a menu called Text Macros in the Tools menu. It will only be visible when there is an active text or code editor. It has 5 submenus: one that toggles the recording of a macro (Start/stop recording macro), one that replays the last recorded macro (Playback macro), one that can repeat the macro any given number of times, one that saves the current macro for future use, and one that opens the directory where macros are saved in the explorer.

Screenshot

So the idea is that you start recording, make some edits, stop recording, and then replay the edits.
For example, here's what you would do if you just copied a few signatures from an interface that you have to implement:

Demo

You can change the shortcuts associated with the macro menus in Tools > Options > Environment > Keyboard.
Look for the following commands:

  • Tools.RecordMacro
  • Tools.PlaybackMacro
  • Tools.PlaybackMacroMultipleTimes
  • Tools.SaveMacro
  • Tools.OpenSavedMacros
  • Tools.RunSavedMacro1
  • Tools.RunSavedMacro2
  • ...

What can be recorded?

Only text editing features can be recorded, so you cannot use this extension to automate work in, say, a Windows Forms editor.

Currently, here are the commands that can be recorded:

  • Cursor movements
  • Characters that you type
  • Tabs, new lines, deletions
  • Find operations (Find Next...)
  • Some text editing commands from the Edit menu (to lowercase, to uppercase...)

Known limitations:

  • Recording copy/paste operations does not work well when the Productivity Power Tools extension is installed (more details here)

Change Log

1.17 - Mar 31, 2022

  • Support for Visual Studio 2022

1.16 - Apr 17, 2021

  • Support for loading extra recordable commands from an external file (thanks to gregtbrown)
  • Added "Duplicate" to recordable commands
  • Added a menu item to open the macros directory in Explorer

1.15 - Aug 22, 2020

  • Support for Find operations (thanks to viniciusvillas)
  • Added macro names in playback menu
  • Automatically stop recording on playback

1.14 - Nov 10, 2019

  • Fixed reordering macros

1.13 - Sep 30, 2019

1.12 - Dec 10, 2018

  • New recorded commands: "Go to brace" and outlining commands

1.11 - Aug 15, 2018

  • Added shortcuts to run saved macros

1.10 - Apr 23, 2017

  • Support for Visual Studio 2017
  • Playback macros in a single undo transaction (thanks to Yves Goergen)

1.9 - May 17, 2016

1.8 - May 5, 2016

  • Added option to save macros

1.7 - Aug 8, 2015

  • Fixed support for VS 2012/2013

1.6 - Jul 21, 2015

  • Support for Visual Studio 2015 (thanks to Ian Prest)

1.5 - Jul 8, 2014

  • Added "Edit.LineFirstColumn" as a recordable command (thanks to Jose Jiminiz).

1.4 - Dec 7, 2013

  • Added menu to repeat macro a given number of times.

1.3 - Nov 28, 2013

  • Fixed macros not working in certain file types (HTML...)
  • Recording additional edit commands: Format Document/Selection, Comment/Uncomment Selection, Delete Horizontal White Space, Increase/Decrease Line Indent, Organize Usings, Move Selected Lines Up/Down (VS 2013).

1.2 - Oct 24, 2013

  • Support for Visual Studio 2013
  • Added 'Ctrl+Shift+R' shortcut to match shortcut of previous Visual Studio versions

1.1 - Feb 8, 2013

  • Added visual cue while recording
  • Current macro now persists across sessions

1.0 - Nov 13, 2012

  • Initial version

Want to contribute?

  • Let me know of any issues you may find (include a portion of text and keystroke sequence if it is a problem with a macro)
  • Fork the code and contribute bug fixes or new features

License

Text Macros for Visual Studio Copyright (C) 2012-2022 Xavier Poinas

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].