Manage code snippets in Notepad++

前端 未结 3 1236

Is there any way to manage code snippets with backup for the database and code highlighting in Notepad++?

3条回答
  •  爱一瞬间的悲伤
    2020-12-04 11:40

    There is also FingerText. It installed and ran fine from NPP's new Plugins Admin. If you give it a shot, you should probably go to Plugins | FingerText | Install Default Snippet Package to get a default set of snippets. It is vintage 2012, but still works. It expands snippets via the key, a la TextMate, by default. It has expansion macros, such that $[![(key)DATE:yyyy/MM/dd]!] represents the current date for its insert date snippet. If you insert e.g. a hyperlink, it highlights the text part, so it will replace its placeholder for the text when you start typing, and then you can hit and the URL placeholder will be highlighted. This is reminiscent of the way Emmet is supposed to work, as well. You can of course, add new and edit snippets.

    Perhaps its greatest oversight is it doesn't break snippets up into categories; so you get just one long list for your snippets. Snippets are aware of file extensions, however. It doesn't seem to have autocompletion. Documentation can be found in its {NPP}\plugins\FingerText directory, in "README.rdoc".

    It is evidently a win32 project, and thus would not require .NET 3.5. The developer indicates that it is in alpha stage; but it seems reasonably stable, and seems more mature than an alpha stage, IMHO. It is open source, and available from GitHub at "erinata/FingerText: Tab triggered snippet plugin for Notepad++". My guess is that if you want an x64 version, you'll have to compile it yourself; but there is a Visual Studio project.

提交回复
热议问题