I think that doing development must have a simple but powerful text editor. I prefer notepad++, and I always use it. Ready to share my notepad++ configuration with this article.
Hope that the vast number of notepad++ users, if there is a good configuration can also recommend to me.
Theme Settings
It is important to find a comfortable background color for the editor because it may be time to edit text on the computer.
There are many theme to choose from in the notepad++, "Settings-Style configurator ... select theme" You can choose a theme that suits you.
?
File content Comparison
By notepad++, it is easy to compare the differences of two texts. The shortcut keys for comparison are "Alt + D", and the Undo comparison is "Ctrl + Alt + d".
File Directory browsing
If you are editing a set of files, it is a laborious task to switch directories to open files frequently. In notepad++, you can browse the file directory conveniently through the "Explorer.dll" plugin in notepad++ 's working interface.
To enable this feature is also very simple, download "Explorer.dll", put the DLL file into the notepad++ plugin folder, restart notepad++. This is where you can see the Working window of the browse file directory.
?
Execute Python via notepad++
This feature is my favorite now, because I often use python in my work, it is a great thing to be able to execute directly from notepad++ every time.
Start configuration below:
- Open the Run Configuration window with Run ...
- Enter the Execute Python configuration command, cmd/k CD "$ (current_directory)" & Python "$ (full_current_path)" & ECHO. & PAUSE & EXIT, then select Save ...
- Enter custom command names and shortcut keys
With the above configuration, the Python script can be executed with "Alt + z",
?
Execute node via notepad++
By configuring the Python environment, you can also configure the execution environment for node.
The configuration command is, cmd/k CD "$ (current_directory)" & Node "$ (Full_current_path)" & ECHO. & PAUSE & EXIT
In addition, all the run shortcuts that are customized in notepad++ can be viewed through "Settings, Shortcut Mapper ..., run Commands".
The instruction of the specific shortcut key will be saved in "c:\users\xxx\appdata\roaming\notepad++\ shortcuts.xml", can modify this file to change the shortcut key corresponding instruction.
My notepad++.