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

前端 未结 8 538
孤街浪徒
孤街浪徒 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 11:05

    I've created a Notepad++ plugin that does this (without the need of python). It can be found at https://bitbucket.org/zastrowm/notepad-visualstudiolinecopy.

    0 讨论(0)
  • 2021-02-02 11:06

    You can add a script with the Python Script Notepad++ plugin, and assign Ctrl + C to the script (remove the Ctrl + C mapping from SCI_COPY in shortcut mapper, Scintilla Commands tab)

    The script is just:

    if editor.getSelectionStart() == editor.getSelectionEnd():
        line = editor.getCurLine()
        editor.copyText(line)
    else:
        editor.copy()
    

    Obviously just add another similar script for Ctrl-X that removes the line instead.

    0 讨论(0)
提交回复
热议问题