Debian系統默認未預裝Notepad++,需通過以下步驟手動安裝:
notepad-plus-plus.org),選擇適用于Linux的.tar.gz格式安裝包(如notepad-plus-plus-8.5.6-linux-x64.tar.gz)。tar -xvf notepad-plus-plus-*.tar.gz -C /opt,將文件解壓至/opt目錄。sudo nano /usr/share/applications/notepad++.desktop。YourUsername為實際用戶名):[Desktop Entry]
Name=Notepad++
Exec=/opt/notepad-plus-plus-*/notepad++.sh
Icon=/opt/notepad-plus-plus-*/icons/notepad++.png
Type=Application
Categories=TextEditor;
Ctrl+O→Enter→Ctrl+X)。/opt/notepad-plus-plus-*/notepad++.sh打開。安裝完成后,可通過以下3種方式導入(打開)文件:
文件→打開,在彈出的文件瀏覽窗口中選擇目標文件(如/home/user/Documents/example.txt),點擊打開即可。Ctrl+O組合鍵,快速彈出文件選擇窗口,選擇文件后按Enter確認。ls -l /path/to/file查看權限,chmod +r /path/to/file添加讀取權限)。編輯→文檔格式轉換→轉換為UNIX格式),避免腳本執行錯誤(僅適用于Shell、Python等腳本文件)。gedit(sudo apt install gedit)或mousepad(sudo apt install mousepad)等文本編輯器,操作邏輯類似(文件→打開)。通過以上步驟,即可在Debian系統下使用Notepad++成功導入并編輯外部文件。