Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro recording #4490

Open
fabiopicchi opened this issue Mar 21, 2016 · 240 comments
Open

Macro recording #4490

fabiopicchi opened this issue Mar 21, 2016 · 240 comments
Assignees
Labels
feature-request Request for new features or functionality keybindings VS Code keybinding issues
Milestone

Comments

@fabiopicchi
Copy link

fabiopicchi commented Mar 21, 2016

It would be nice to be able to record a sequence of inputs and then reproduce it as in Notepad++ or Vim.

@jrieken jrieken added the feature-request Request for new features or functionality label Mar 21, 2016
@finalclass
Copy link

This feature plus dired mode and vscode could compete with emacs.

@alexdima alexdima added this to the Backlog milestone Jul 7, 2016
@alexdima alexdima added the editor label Jul 7, 2016
@DeltaCharlieAlpha
Copy link

Major help when refactoring to have a recordable macro for repetitive edits.

@mphaney
Copy link

mphaney commented Sep 30, 2016

I'd love to see this, but one step further as in EditPlus, where multiple different macros can be recorded and assigned to different hotkeys. Makes it EXTREMELY nice to have common repetitive tasks assigned semi-permanently.

@hazballae
Copy link

+1 It would be great

@alexdima alexdima removed their assignment Oct 25, 2016
@d-akara
Copy link

d-akara commented Oct 25, 2016

JEdit has a great macro implementation. It captures not only keyboard commands, but actions from menus as well. A script is created that you can then also save or modify.

@Yayuro
Copy link

Yayuro commented Nov 3, 2016

+1

@bradw2k
Copy link

bradw2k commented Nov 4, 2016

VSCode missing macros is the only reason I still have Sublime. I do repetitive editing by recording then playing back macros almost daily.

@bradw2k
Copy link

bradw2k commented Nov 4, 2016

By the way, would love to be able to record a macro and then assign it to a keybinding. Visual Studio could do this in the 90's and it was great!

@geddski
Copy link

geddski commented Nov 23, 2016

I wrote an extension that makes writing custom macros easy. Don't have recording yet, but it's still pretty convenient.

https://marketplace.visualstudio.com/items?itemName=geddski.macros

@lekhnath
Copy link

lekhnath commented Feb 7, 2017

Cannot record macros in vscode 😞

@harrywstoic
Copy link

+1 Would love to see ability to record / playback / keyboard-assign macros. Sublime Text, for example, is a very useful text triage tool, and one of the reasons for that is because you can playback repetitive tasks (for me it's usually preparing long lists of values for SQL statements). VSCode is very close.

@rodison
Copy link

rodison commented Mar 23, 2017

I don't believe that VS Code doesn't have macro recording!!!! In Notepad++ and Sublime this funcionality exists and is very usefull. I will need now to reinstall Sublime because of this :(

@rogierlommers
Copy link

Oh yes! Would LOVE being able to record macros and re-play them until EOF.

@CodeFreezr
Copy link

Yes.

@tiagolr
Copy link

tiagolr commented Apr 11, 2017

+1

@miliu99
Copy link

miliu99 commented Apr 11, 2017

Yes, would love to have it. I'm in process converting angular 1 to angular 2 manually, and need to do a lot of repeating "find and replace".

@atisinger
Copy link

Adding my support for this feature. It's the only thing I still open Notepadd++ for.

@paulgreaterdata
Copy link

+1

@mandolyte
Copy link

Just adding my support for recording macros; this with playback would eliminate my need to keep Notepad++.

@JulienFerraro
Copy link

@geddski when you say that your extension doesn't have recording yet, does this mean that it'll get recording in a (near ?) future ?

@geddski
Copy link

geddski commented May 11, 2017

@JulienFerraro I'm not planning on adding recording but would happily merge a PR with it!

@dreftymac
Copy link

dreftymac commented May 25, 2017

Workaround: Add a task that opens the current VSCode buffer in your other editor (e.g. Notepad++ or Vim) then make your changes there. Not elegant nor desirable shrug but it's a workaround.

@dunstontc
Copy link

+1

@rogierlommers
Copy link

This would be thé feature with makes VSC my default editor for daily usage.

@alexdima alexdima removed the editor label Oct 15, 2021
@mark-hahn
Copy link

+1

It's kind of absurd that an ide with so many features (more than I've seen before) doesn't have macros. That is of the order of not having draggable text, as a random example.

@tshino
Copy link

tshino commented Dec 12, 2021

FYI: I have created an extension to realize keyboard macro recording, which I think could be an alternative solution for this long-standing issue. I hope you guys will enjoy it :)
https://marketplace.visualstudio.com/items?itemName=tshino.kb-macro

@hsmyers
Copy link

hsmyers commented Dec 12, 2021 via email

@rwgreene999
Copy link

FYI: I have created an extension to realize keyboard macro recording, which I think could be an alternative solution for this long-standing issue. I hope you guys will enjoy it :) https://marketplace.visualstudio.com/items?itemName=tshino.kb-macro

tshino: Great job on that macro!

@katnellayappan
Copy link

tshino: Great job on that macro! Thank you!!

@Fxiao1
Copy link

Fxiao1 commented Apr 25, 2022

It's hard for me to imagine that after 6 years, the demand for recording macros has not been realized. Really disappointing

@shivams
Copy link

shivams commented Jun 13, 2022

Just want to point out that if you use Vim-mode in VSCode (using some Vim extension, like vscodevim.vim), then you get macros out-of-the-box from that extension. Just press the standard q key to record and @ key to re-play.

I had only ever used VSCode in Vim mode and didn't even realize that VSCode didn't have native macro recording, until today when I was using VSCode on my friend's laptop which didn't have Vim mode in it 😅.

So, yeah, while it's disappointing that VSCode hasn't implemented such an important feature, it's all cool really if you're cool with extensions. And if you're a "modal" person, you won't even notice!

@AdamNofsinger-Leer
Copy link

+1

1 similar comment
@VladimirCreator
Copy link

+1

@collectivemass
Copy link

This extension is currently doing the trick for me.
https://marketplace.visualstudio.com/items?itemName=tshino.kb-macro

@hsmyers
Copy link

hsmyers commented Jan 10, 2023 via email

@AdamNofsinger-Leer
Copy link

That extension is pretty good, has similar features to Notepad++, but I was a little disappointed at how slow it is compared to Notepad++ ... maybe it was because of the CSV formatting that was trying to kick in on the file I was editing?

@alexdima alexdima modified the milestones: Backlog, March 2023 Mar 1, 2023
@ulugbekna ulugbekna removed this from the March 2023 milestone Mar 23, 2023
@glauber-experian
Copy link

I'm also very surprised this functionality doesn't exist (except for a handful of extensions that don't work).
I would love to see vim or emacs style keyboard macros in VS Code.

@oliver-dungey
Copy link

Definitely a missing feature, ideally with support to manually edit the macros

@JackTrapper
Copy link

  • Record: Ctrl+Shift+R
  • Playback: Ctrl+Shift+P

@steve-kessell-aero
Copy link

steve-kessell-aero commented Apr 27, 2023

That might need a little more context. Ctrl+Shift+R in my vscode tries to refactor code. Could be the language (I'm currently using golang), or a plugin, or some vscode setting that is enabled....?
If it works on your setup, would like to know how it got to be like that :-)
Also, Ctrl+Shift+P is the default way to bring up vscode's 'search editor' box. Don't really want to override that.

@VladimirCreator
Copy link

  • Record: Ctrl+Shift+R

  • Playback: Ctrl+Shift+P

Ctrl+Shift+P is used for Command Palette

@rstriquer
Copy link

By the commits here it seems this feature was shipped on an April 2023 version but despite my install being a newer one I do not have that yet on my env (couldn't find it on my keyboard shortcuts mapper nor on my command pallet) ... here are my "help about" description.

PS: @VladimirCreator do you know in which vscode version it was shipped? Can you share with us your vscode version if it works on your local?

Thank you guys!

Version: 1.80.1
Commit: 74f6148
Date: 2023-07-12T17:22:25.257Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 5.19.0-46-generic snap

@VladimirCreator
Copy link

VladimirCreator commented Jul 14, 2023

@rstriquer well, if you take a look at the "Deferred" section in #178951 (Iteration Plan for April 2023) you'll see "Add support for running macros…" there, but this feature actually has not been shipped yet.

@ulugbekna ulugbekna added this to the Backlog milestone Dec 6, 2023
@Perverance
Copy link

Any news regarding this?

@hsmyers

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality keybindings VS Code keybinding issues
Projects
None yet
Development

No branches or pull requests