Creating new shortcut in notepad++

会有一股神秘感。 提交于 2019-12-05 23:25:06

问题


I am trying to add a shortcut or a button in notepad++ to call an external program on the file I am currently editing.

For example, let's say I have the program "analyzer.jar". I would like to create a button (or shortcut) in notepad++ that would directly run the command "cmd -K java -jar analyzer.jar "$(FULL_CURRENT_PATH)".

Since I haven't found any solution yet, any help would be deeply appreciated :).


回答1:


Well, in fact I found how easy it is to create a shortcut for a command:

  1. Go in the menu and select "Run → Run..." (or press f5)
  2. Type your command
  3. Click on "Save", and select the keyboard shortcut of your choice

Sometimes, when you look for complicated solutions, you don't see the simple ones...



来源:https://stackoverflow.com/questions/6597577/creating-new-shortcut-in-notepad

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