-
-
Notifications
You must be signed in to change notification settings - Fork 52
Notepad Tricks
Hello! Most developers use Notepad++, so here we will talk about a couple of tricks in it.
Importrant! Click on the Settings
menu, hit Preferences...
and find New Document
. Make sure you use the settings like on the screenshot above!
Settings
There's a custom Notepad++ language Warcraft-Guardians-of-Azeroth\coder_resources\CK2 Language.xml
. It's very desirable to install it. This will highlight the syntax of CK2, and it will allow you to use Right Click > Toggle Single Line Comment
, Block Comment
and Block Uncomment
functions to comment out multiple lines. It also enables such functions as View > Unfold All
, Fold All
, Collapse Current Level
etc.
To install:
- Open Notepad++ and open the
Define Your Language
tool in theLanguage
menu. - Click
Import
and select theWarcraft-Guardians-of-Azeroth\coder_resources\CK2 Language.xml
file. - Make sure you hit
Save As
in theDefine Your Language
tool. Type anything you want as the name, it isn't important. - Select the new language in the
Language
menu. - Open the
Settings
menu, hitStyle Configurator
. - In the
Select theme:
menu, select Obsidian and clickSave & Close
.
Note: if after restarting Notepad++, the font has changed (the letters has become smaller). Do the 5 and 6 steps again by selecting another theme and back.
Many don't know, but Notepad++ allows commenting out of multiple lines. To use it you must install CK2 Language.xml
. Select a few lines, Right Click and hit...
-
Toggle Single Line Comment
to comment out, if the selected lines aren't commented out, or to uncomment, if the selected lines are commented out. -
Block Comment
to comment the selected lines out. -
Block Uncomment
to uncomment the selected lines.
Notepad++ allows hiding of large blocks of the script. To use it you must install CK2 Language.xml
.
These fuctions are located in the View
menu, starting from Fold All
to Uncollapse Level
. Try them! Also, I would recommend to remember the hotkeys, these commands are very frequently used.