How to mimic Visual Studio's CTRL-X, CTRL-V functionality in Notepad++?

前端 未结 8 555
孤街浪徒
孤街浪徒 2021-02-02 10:33

I\'m using Notepad++ for some projects and miss Visual Studio\'s Ctrl + X, Ctrl + C functionality that cuts or copies the entire curr

8条回答
  •  天涯浪人
    2021-02-02 10:51

    you can write a program with a global key event hook, which every time you make a Ctrl + X checks if notepad++ is the foremost application running, grabs the screen, checks if any text is selected (by looking at the screenshot and your notepad++ color settings), and sends a WM_KEYPRESS message to the notepad++ window simulating a Ctrl + L (assuming you're using windows).

    (this won't put the line into the clipboard though, you'll have to make some character recognition to allow it)

提交回复
热议问题