Installing Notepad++ on Ubuntu
The most common way to get a Notepad-like experience on Ubuntu is by installing Notepad++, a popular Windows text editor with a Linux version available via Snap. Open your terminal and run:
sudo snap install notepad-plus-plus
Enter your password when prompted. The package and its dependencies (including a pre-configured Wine environment) will be installed automatically. Once done, you can launch it from the Ubuntu Dash (press the “Show Applications” icon at the bottom-left of the screen) by typing “Notepad++”.
Launching Notepad++
After installation, you can start Notepad++ in several ways:
notepad-plus-plus.Ctrl+Alt+N).Basic Text Editing Operations
Notepad++ supports standard text editing tasks:
Ctrl+C), then place your cursor where you want to paste and press Ctrl+V.Ctrl+X) to move it to the clipboard, or “Delete” (Del) to remove it.Ctrl+F to open the Find dialog (enter text and click “Find Next”), or Ctrl+H to open the Replace dialog (enter the text to find and the replacement text, then click “Replace All”).Ctrl+Z to undo the last action or Ctrl+Y to redo it.Customizing Notepad++ (Optional)
You can tailor Notepad++ to your preferences:
Settings > Preferences > Localization, select “Chinese (Simplified)” from the dropdown menu, and restart the application.Settings > Preferences > Appearance to change the theme (e.g., light/dark mode) or font size.Uninstalling Notepad++
If you no longer need Notepad++, you can remove it using the terminal:
sudo snap remove notepad-plus-plus
This will delete the application and all its associated files. If you want to keep your settings for a future reinstall, omit the remove command and instead use sudo snap refresh notepad-plus-plus to revert to the default configuration.
Alternative: Lightweight Native Options
If you prefer a native Ubuntu application, consider these alternatives:
sudo apt install gedit (if not already installed) and launch from the Dash. It offers basic text editing with syntax highlighting for code files.sudo apt install nano or sudo apt install vim, then run nano filename or vim filename in the terminal. Nano is more user-friendly for beginners, while Vim offers powerful features for experienced users.