Visual Studio - is there a repeat last command command or shortcut?

社会主义新天地 提交于 2021-02-08 12:21:24

问题


This is a lark, as I'm pretty sure not, but just want to throw it out there, otherwise I can just use a macro.


回答1:


No such command -- there are no different working modes in VS as in vi. Your macro will have to run all the time though. And you might get your editor dirty ;-)




回答2:


I think you might be able to achieve a result similar to what you're looking for by using temporary macros. Here are the steps to create and use a temporary macro...

  1. Press CTRL+SHIFT+R to begin recording a temporary macro.
  2. Perform the command or set of commands you wish to repeat.
  3. Press CTRL+SHIFT+R to stop recording the temporary macro.
  4. Press CTRL+SHIFT+P to execute the temporary macro. Repeat this step as many times as you want to repeat the command(s).



回答3:


If you are wanting this because you are a vi user, there is always viEmu



来源:https://stackoverflow.com/questions/2225784/visual-studio-is-there-a-repeat-last-command-command-or-shortcut

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!