Visual Studio 2012/2013/2015/2017/2019에서 매크로를 기록 / 재생할 수 있습니까?
분명히 매크로는 Visual Studio 2012에서 삭제되었습니다.
키보드 매크로를 기록 및 재생할 수있는 플러그인 / 확장 / 도구가 있습니까 (Visual Studio 2010의 기록 / 재생 임시 매크로와 매우 유사)?
예를 들어, 일반적으로 한 언어에서 다른 언어로 코드를 변환하거나 텍스트 목록에서 속성을 신속하게 생성 할 때 매크로를 사용합니다.
Visual Studio 2012-2019 확장 ( 텍스트 작성자) 용 텍스트 매크로를 사용해 볼 수 있습니다 . 기본적으로 메모장 ++ 매크로 (텍스트 편집, UI 자동화 없음)와 동일한 기능을 수행합니다.
코드는 오픈 소스 ( GitHub )이므로 개선에 기여할 수 있습니다 :-)
이 버전의 Visual Studio에는 문자 그대로 수백 가지 기능이 있지만 실제로 제거한 기능도 있습니다. 그중 하나는 매크로 기록 / 재생, 매크로 프로젝트 및 매크로 IDE를 포함한 매크로 자동화 기능입니다. 매크로는 매크로를 사용하는 사람들에게 유용하다는 것을 알고 있지만 불행히도 사용 현황 데이터에 따르면 Visual Studio 개발자 중 1 % 미만이이 기능을 활용하고 있습니다. 따라서 우리는 매일 사용되는 Visual Studio 영역에 더 많은 투자를하고 있으며 여러 릴리스의 매크로를 업데이트하지 않았습니다.
출처 : Visual Studio 11 개발자 미리보기의 매크로
메모장 ++ 로 잘라내어 붙여 넣기를 통해이 문제를 해결하기 시작했지만 (불편하지만) 거기에서 매크로를 기록하고 실행 한 다음 Visual Studio 2012로 다시 잘라 붙여 넣습니다.
눈에 띄고 매크로를 다시 가져와 투표하십시오!
http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2650757-bring-back-macros
업데이트 (2013 년 10 월 4 일) :
예이! 귀하의 투표에 감사드립니다. 계속 밀고!
현재 Visual Studio의 향후 버전에서 스크립팅 기능을 제공 할 가능성을 검토하고 있습니다. 이 제안을 조사하는 동안 어떤 스크립팅 기능을 제공해야하는지 의견을 계속 보내주십시오.
Tony Goodhew, VS Pro 프로그램 관리자
Sublime Text를 사용한 이후로 매크로를 사용하는 것보다 텍스트를 편집하는 것이 더 좋은 방법이 있다는 것을 알았습니다.
Sublime을 사용하면 한 번에 여러 커서로 텍스트를 편집 할 수 있습니다. 설명하기는 어렵지만 http://www.sublimetext.com 에서이를 보여주는 몇 가지 애니메이션이 있습니다 .
Sublime을 Visual Studio의 외부 도구로 추가했습니다.
- 열린 도구 / 외부 도구
- 추가 : 숭고한, exe를 선택하고 다음 인수를 사용하십시오 : $ (ItemPath) : $ (CurLine) : $ (CurCol)
- (다음 단계가 더 쉬워 지므로 맨 위로 이동하십시오. 그렇지 않으면 위치를 기억하십시오)
- 그런 다음 사용자 정의 / 키보드로 이동하여 Tools.ExternalCommand1을 검색하고 원하는 키보드 단축키를 추가하십시오.
그러면 VS와 동일한 커서 위치에서 Sublime의 현재 문서가 열립니다.
(또한 Sublime은 여전히 필요한 경우 매크로를 수행 할 수 있습니다)
검토 중 → 완료
귀하의 의견이 크고 분명한 것으로 들었으며, 해결책을 찾고 있습니다. 따라서 이제 Visual Studio 2015 및 Visual Studio 2013을 모두 지원하는 매크로 버전을 출시했습니다.
While we were at it, we took the opportunity to fix a couple of bugs and improved the keyboard shortcuts. We hope you enjoy it.
For more information, see the blog post here: http://aka.ms/vsmacros
We’ve also open-sourced the code under the MIT license. If you have any suggestions or contributions, feel free to create an issue or a pull request in the new GitHub repo: http://github.com/Microsoft/VS-Macros
Justin Clareburt Senior Program Manager
Macros for Visual Studio is an extension for Visual Studio 2013 and Visual Studio 2015 that enables the use of macros to automate repetitive tasks in the IDE. The extension can record most of the commands in Visual Studio including text editing operations. Features
- Record and playback active document operations and Visual Studio IDE commands
- Playback multiple times
- Manage and persist macros with a Macro Explorer
- Assign keyboard bindings to any macro
- Macros recorded as JavaScript files that call VS DTE APIs
- Macro editing in Visual Studio with DTE IntelliSense
- Stop playback
- Sample macros
Visual Commander extension (developed by me) supports code editing macro recording and playback in Visual Studio 2015/2017/2019.
I just was brought to my attention that Microsoft released an extension to Visual Studio 2013 to support macro's back again:
https://visualstudiogallery.msdn.microsoft.com/d3fbf133-e51b-41a2-b86f-9560a96ff62b
I'd advice to still vote for the feature to encourage them to make the extension available for Visual studio 2015 too: https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2650757-bring-back-macros
Use Macros for Visual Studio 2013 + 2015
Macros open source URL: https://github.com/Microsoft/VS-Macros
Announcement on MSDN Blog: Macros extension: VS 2015 support and open-sourced
VSScript allows recording, writing, and editing macros in Lua, though I have not yet been able to make it work with Visual Studio 2015 (the command button is greyed out; documentation says Visual Studio 2005 to 2015 RC are supported).
It is currently released as a freeware.
The Visual Commander extension lets you automate repetitive tasks in Visual Studio.
'Programing' 카테고리의 다른 글
줄임표 […]는 목록에서 무엇을 의미합니까? (0) | 2020.05.14 |
---|---|
원형 선분 충돌 탐지 알고리즘? (0) | 2020.05.14 |
innerHTML로 스크립트를 삽입 할 수 있습니까? (0) | 2020.05.13 |
힘내 재설정-하드 및 원격 저장소 (0) | 2020.05.13 |
콘다 환경의 이름을 바꾸려면 어떻게해야합니까? (0) | 2020.05.13 |