|
1 |
| -# Programmer-s-Notepad-Npp-no-plugin-conflicts-setup- |
2 |
| -The advanced Notepad++ setup that does not have any conflicts between the installed plugins. The setup was done mostly for the back-end web developers. |
| 1 | +# The programmer's Notepad++ (no plugin conflicts setup) |
| 2 | + |
| 3 | +The advanced Notepad++ setup that does not have any conflicts between the installed plugins. The setup was done mostly for the back-end web developers. Hit the `Ctrl+Shift+Alt+M` to read this file in the editor. |
| 4 | + |
| 5 | + |
| 6 | +## Usage |
| 7 | + |
| 8 | +Before starting the Notepad++ make sure you run Notepad++Portable.exe , or if you will run notepad++.exe directly all small configurations will be lost. Download PortableApps, install Notepad++ and replace `PortableApps/Notepad++Portable/` with extracted directory, or you can create shortcut for Notepad++Portable.exe and pin it to the TaskBar and Desktop. |
| 9 | + |
| 10 | + |
| 11 | +### Theme |
| 12 | + |
| 13 | +My preferred theme is `Texter-Light` and `Texter-Twilight` in the Windows High Contrast and editor's Dark Mode. If you want dark mode in Notepad++ go to `Language->User Defined Language->Define your language...` and change file extensions for each Dark/Light theme. By default the color scheme will load "Light" syntax. |
| 14 | + |
| 15 | + |
| 16 | +### The workflow |
| 17 | + |
| 18 | +After you open the editor you'll see `TODO.txt` that could be opened using `Ctrl+Shift+Alt+Space` shortcut, or accessed from the context menu. |
| 19 | + |
| 20 | +When you edit the document you can hit `Ctrl+Shift+P`, type 10, and you'll see `Add 10 Lines`, press `Enter` key and after some time if need more 10 new lines - hit `Ctrl+Shift+Alt+Enter` and previous command will be executed. |
| 21 | + |
| 22 | +- `Ctrl+Shift+Alt+Backspace` is used for NppExec plugin to repeat executed command, e.x. if you want to compile some script. |
| 23 | +- `Shift+Alt+D` - you can clone the file to the next view, or |
| 24 | +- `Ctrl+Alt+D` - you can move the file to the next view. It's useful when you need work with large files. |
| 25 | +- `Alt+D`, `Alt+J` - Multicursor, select next occurrence, like in the SublimeText editor |
| 26 | +- `Alt+W` - Select by word |
| 27 | +- `Alt+K` - Skip to next selection |
| 28 | +- `Alt+U` - Undo selection |
| 29 | +- `Ctrl+Shift+L` - Select all occurrences |
| 30 | +- `Ctrl+Alt+P` - Toggle spell checker |
| 31 | +- `Alt+P` - go to next error |
| 32 | +- `Shift+Alt+P` - go to previous error |
| 33 | +- `Shift+Enter` - will break the line |
| 34 | +- `Shift+Space` - will select between quotes |
| 35 | +- `Shift+Alt+Space` - edit in the Distraction Free Mode |
| 36 | +- `Alt+Z` - cursor to previous location |
| 37 | +- `Shift+Alt+Z` - cursor to next location |
| 38 | +- `Ctrl+Alt+A` - Select paragraph |
| 39 | +- `Ctrl+Shift+A` - Select by Fold |
| 40 | + |
| 41 | + |
| 42 | +### Projecting |
| 43 | + |
| 44 | +In the context menu you'll find Workspace item that will have useful items to work with the project. If you installed Git - make sure the Workspace path is loaded and you can chose from the context menu `Git->Git Edit Global .gitignore` and paste the following: |
| 45 | + |
| 46 | +``` |
| 47 | +.DS_Store |
| 48 | +.vscode |
| 49 | +.idea |
| 50 | +.tags |
| 51 | +tags.idx |
| 52 | +Thumbs.db |
| 53 | +*.orig |
| 54 | +*.swp |
| 55 | +GPATH |
| 56 | +GTAGS |
| 57 | +GRTAGS |
| 58 | +NppGTags.cfg |
| 59 | +tags |
| 60 | +tags.sqlite |
| 61 | +
|
| 62 | +``` |
| 63 | + |
| 64 | +The most useful plugin I found is NppGTags. Open any file in the workspace root directory and `Create database`. Make sure if the workspace path is loaded. If you know how to use ctags.exe - download and compile it from the sources and after that you'll be able to use NppTags and TagLEET, but if you will want to generate tags database it will be slow. |
| 65 | + |
| 66 | + |
| 67 | +#### Git |
| 68 | + |
| 69 | +If you want use Git features - it's better to download and install TortoiseGit. One more useful program is DiffUse - download and install it and hit `Ctrl+Shift+Alt+P` and add the absolute path to diffuse.exe to the user's `Path` environment variable. |
| 70 | + |
| 71 | + |
| 72 | +#### Useful links |
| 73 | + |
| 74 | +In the Explorer's Favorites you can find useful links to some popular services. |
| 75 | + |
0 commit comments