Notepad++ 快速鍵修改使之更符合Emacs的使用者習慣

來源:互聯網
上載者:User

標籤:http   io   ar   os   使用   sp   on   art   cti   

Notepad++ 快速鍵修改使之更符合Emacs的使用者習慣,主要是設定時會與NOTEPAD++內建的鍵衝突,例如ALT+F,這個優先順序是高於使用者自訂的快速鍵,最後是通過錄製宏的方式解決。使用只需要將下面的XML替換使用者目錄下的shortcuts.xml(C:\Users\xxx\AppData\Roaming\Notepad++)便可以了.
<NotepadPlus>    <InternalCommands>        <Shortcut id="41001" Ctrl="no" Alt="no" Shift="no" Key="0" />        <Shortcut id="41010" Ctrl="no" Alt="no" Shift="no" Key="0" />        <Shortcut id="43001" Ctrl="yes" Alt="no" Shift="no" Key="81" />        <Shortcut id="43009" Ctrl="no" Alt="no" Shift="no" Key="0" />        <Shortcut id="42022" Ctrl="no" Alt="no" Shift="no" Key="0" />    </InternalCommands>    <Macros>        <Macro name="Trim Trailing and save" Ctrl="no" Alt="no" Shift="no" Key="0">            <Action type="2" message="0" wParam="42024" lParam="0" sParam="" />            <Action type="2" message="0" wParam="41006" lParam="0" sParam="" />        </Macro>        <Macro name="word left" Ctrl="no" Alt="yes" Shift="no" Key="66">            <Action type="0" message="2308" wParam="0" lParam="0" sParam="" />        </Macro>        <Macro name="word right" Ctrl="no" Alt="yes" Shift="no" Key="70">            <Action type="0" message="2310" wParam="0" lParam="0" sParam="" />        </Macro>        <Macro name="line start" Ctrl="yes" Alt="no" Shift="no" Key="65">            <Action type="0" message="2453" wParam="0" lParam="0" sParam="" />        </Macro>    </Macros>    <UserDefinedCommands>        <Command name="Launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox &quot;$(FULL_CURRENT_PATH)&quot;</Command>        <Command name="Launch in IE" Ctrl="yes" Alt="yes" Shift="yes" Key="73">iexplore &quot;$(FULL_CURRENT_PATH)&quot;</Command>        <Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82">chrome &quot;$(FULL_CURRENT_PATH)&quot;</Command>        <Command name="Launch in Safari" Ctrl="yes" Alt="yes" Shift="yes" Key="70">safari &quot;$(FULL_CURRENT_PATH)&quot;</Command>        <Command name="Get php help" Ctrl="no" Alt="yes" Shift="no" Key="112">http://www.php.net/%20$(CURRENT_WORD)</Command>        <Command name="Google Search" Ctrl="no" Alt="yes" Shift="no" Key="113">http://www.google.com/search?q=$(CURRENT_WORD)</Command>        <Command name="Wikipedia Search" Ctrl="no" Alt="yes" Shift="no" Key="114">http://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)</Command>        <Command name="Open file" Ctrl="no" Alt="yes" Shift="no" Key="116">$(NPP_DIRECTORY)\notepad++.exe $(CURRENT_WORD)</Command>        <Command name="Open in another instance" Ctrl="no" Alt="yes" Shift="no" Key="117">$(NPP_DIRECTORY)\notepad++.exe $(CURRENT_WORD) -nosession -multiInst</Command>        <Command name="Send via Outlook" Ctrl="yes" Alt="yes" Shift="yes" Key="79">outlook /a &quot;$(FULL_CURRENT_PATH)&quot;</Command>    </UserDefinedCommands>    <PluginCommands>        <PluginCommand moduleName="DSpellCheck.dll" internalID="2" Ctrl="no" Alt="no" Shift="no" Key="0" />        <PluginCommand moduleName="DSpellCheck.dll" internalID="0" Ctrl="no" Alt="no" Shift="no" Key="0" />        <PluginCommand moduleName="DSpellCheck.dll" internalID="3" Ctrl="no" Alt="no" Shift="no" Key="0" />        <PluginCommand moduleName="DSpellCheck.dll" internalID="1" Ctrl="no" Alt="yes" Shift="no" Key="70" />    </PluginCommands>    <ScintillaKeys>        <ScintKey ScintID="2300" menuCmdID="0" Ctrl="no" Alt="no" Shift="no" Key="40">            <NextKey Ctrl="yes" Alt="no" Shift="no" Key="78" />        </ScintKey>        <ScintKey ScintID="2302" menuCmdID="0" Ctrl="no" Alt="no" Shift="no" Key="38">            <NextKey Ctrl="yes" Alt="no" Shift="no" Key="80" />        </ScintKey>        <ScintKey ScintID="2314" menuCmdID="0" Ctrl="yes" Alt="no" Shift="no" Key="69" />        <ScintKey ScintID="2451" menuCmdID="0" Ctrl="no" Alt="no" Shift="no" Key="35">            <NextKey Ctrl="yes" Alt="no" Shift="no" Key="69" />        </ScintKey>        <ScintKey ScintID="2013" menuCmdID="42007" Ctrl="yes" Alt="no" Shift="yes" Key="65" />        <ScintKey ScintID="2326" menuCmdID="0" Ctrl="no" Alt="no" Shift="no" Key="8">            <NextKey Ctrl="no" Alt="no" Shift="yes" Key="8" />        </ScintKey>        <ScintKey ScintID="2308" menuCmdID="0" Ctrl="no" Alt="yes" Shift="no" Key="66">            <NextKey Ctrl="yes" Alt="no" Shift="no" Key="66" />        </ScintKey>        <ScintKey ScintID="2310" menuCmdID="0" Ctrl="no" Alt="yes" Shift="no" Key="70">            <NextKey Ctrl="yes" Alt="no" Shift="no" Key="39" />        </ScintKey>        <ScintKey ScintID="2304" menuCmdID="0" Ctrl="no" Alt="no" Shift="no" Key="37">            <NextKey Ctrl="yes" Alt="no" Shift="no" Key="66" />        </ScintKey>        <ScintKey ScintID="2306" menuCmdID="0" Ctrl="no" Alt="no" Shift="no" Key="39">            <NextKey Ctrl="yes" Alt="no" Shift="no" Key="70" />        </ScintKey>    </ScintillaKeys></NotepadPlus>




Notepad++ 快速鍵修改使之更符合Emacs的使用者習慣

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.