12+ Best Tips to use Notepad ++ you should know!

0
20

There are a lot of editors available for programmers, but Notepad ++ is still one of the top alternatives to Notepad. Not only is it free and feature rich but it also supports many different programming languages ​​like .html, .css, .asp, .bash, .js … and much more. The following article will introduce you to tips for using Notepad ++ best for beginners.

First to use NotePad ++ on your computer, you need to download the Notepad ++ application to your computer. The latest version of Notepad ++ can be downloaded from the following link:

Best Tips Notepad ++

1. Automatically perform some tasks

This is one of the most time-saving features of Notepad ++. It allows you to repeat a task without having to do it again. You can replace certain text in different files and save them in a specific format, just record the whole process and repeat that task whenever you want. To record a macro, go to Macros on the navigation menu of Notepad ++.

2. Run code in specific browsers

Let’s say you wrote some lines of code in HTML and CSS. Currently, you want to check the look of the page without having to view it on an online site. You have two options:

First, save that code with the corresponding extension (here is .html) and open the file with any web browser.

Or second, you just run that code in a specific browser. To do that, you write that code, choose Run> Launch in Firefox ( IE, Chrome or Safari … ) . As a result, the page opens directly to the web browser of your choice.

3. Change Preference

If you want to customize Notepad ++’s boring default look and feel, you can do that without installing any third-party software or plug-ins. It allows you to change the theme, font type, font size, color, background color … Also, if the computer has installed fonts from a third party, you can still use it as a font. The default language is Notepad ++. To change the look, click on Settings> Style Configurator , then select the interface you want.

4. Create and set the theme of Notepad ++

If you do not like the default theme of Notepad ++, you can create your own custom theme and set it as the default theme. Your requirement is to save the file under the .xml extension and place it in the following directory:

C: Usersyour computer nameAppDataRoamingNotepad++themes

Do not forget to replace user_name with the name of your computer, then go to Settings> Style Configurator and select the theme in the Select Theme.

5. Quickly open a file that has been booted and change the volume

In case you have a directory full of code and need to open a specific file, instead of having to spend time searching, you can click on File and check the file just opened recently. You can have up to 15 files in one list. If you want to increase or decrease the number of recently opened files, go to Settings> Preferences , under the Recent Files History section , you will see the option to change the number.

6. Change the display

If you are developing a theme, there will definitely be more files created, moreover, you have trouble opening and closing various files in a specific directory.

If you are working on Notepad ++ and you are having trouble keeping a lot of files open in the same folder, you can use Folder as Workspace. This is a feature that allows users to view all files and folders in a tree. If you want to have a menu bar on the left hand side to facilitate opening a specific file and folder, just click on File> Open Folder as Workspace and select the folder you want to display on the tree map.

7. Open all the files in one folder at a time

If you want to open all the files in one folder at a time on Notepad ++, just open a folder, select all files and press Enter or click File> Open Containing Folder> Explorer , select the file and press Enter .

8. Search for text or text in Notepad ++

To find the error when we mistype a spelling mistake, you do not need to open and examine each file individually, but instead can open all the files at the same time (same as above), press Ctrl + F and select the Find tab .

Enter the keyword you want to search in the empty box and then click Find All in All Opened Documents . The search results will be displayed in the last part of Notepad ++, then you just go to the file displaying and correcting those errors.

9. Replace words or text in multiple files

In case you want to replace a specific word or paragraph in multiple files, just open all the files you need to do, press Ctrl + H , type the words you want to replace in the Find what box , then enter the word you want. replace replace with , and then click replace All in All Opened Documents .

To save all the files that have been replaced at the same time, press Ctrl + Shift + S.

10.View at the same time two regions of a text

Assuming you have to work in a fairly long file and do not want to scroll continuously to check for different areas, you can:

  • Open the file, then select the View tab .
  • Click on Move / Clone to Other View.
  • At this point the Notepad ++ editor screen will be split in two and you can manipulate each region as a separate file.

11. Create an anti-modification file

If you often hit the wrong button, this is a solution to help you edit a specific file or create anti-modification files when you put the two files next to each other. To do that, click on the tab of the file, then select Read Only.

Notepad ++ is a simple, easy-to-use programming language editor, even for beginners. Hopefully through the article above you will understand more about this software also the useful features that it provides to us to do their work most effectively.

12. Show and hide line numbers in Notepad++

Click on the Settings menu and select the Preferences… option.  You should now be at the General preferences screen as shown below.

On the left of the preference screen are different categories of settings that you can select. Click on the Editing category once so that it becomes highlighted.  You should now be at the Editing preferences screen as shown below.

To show line numbers in Notepad++, put a checkmark in the checkbox labeled Display line number, as indicated by the blue arrow.  If you wish to hide line numbers in Notepad++, remove the checkmark from this box instead. When ready, click on the Close button to save the changes. Depending on whether you checked or unchecked that box, Notepad++ will now display line numbers.