
Notepad++ for macOS – Native Qt 6 / Scintilla port with top plugins
A native macOS port of Notepad++ built with Qt 6 and Scintilla, delivering full visual and functional parity with the classic Windows experience.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
A native macOS port of Notepad++ built with Qt 6 and Scintilla, delivering full visual and functional parity with the classic Windows experience.
Download the latest standalone .dmg from Releases. Open the disk image and drag Notepad++ to your Applications folder.
On first launch, macOS Gatekeeper may show an alert since this open-source build is ad-hoc signed. Choose either option below to run it:
Click Done on the alert.
Open System Settings ➔ Privacy & Security.
Scroll down to the Security section.
You will see:
"Notepad++" was blocked from use because it is not from an identified developer.
Run this single command in Terminal to permanently remove the download quarantine flag from the app:
xattr -cr /Applications/Notepad++.app
Once done, you can double-click Notepad++ in Applications anytime and it will launch directly.
brew install cmake ninja qt@6
Quick Build
Run the one-shot build script:
./build.sh
Or build manually with CMake:
mkdir -p build && cd build cmake .. -G Ninja -DCMAKE_PREFIX_PATH="$(brew --prefix qt@6)" -DCMAKE_BUILD_TYPE=Release cmake --build . -j$(sysctl -n hw.ncpu) open NotepadPlusPlusMac.app
Standalone DMG Packaging
To create a fully self-contained .dmg disk image with all Qt frameworks bundled:
./package_dmg.sh
Qt5 fallback
cmake .. -G Ninja
-DCMAKE_PREFIX_PATH="$(brew --prefix qt@5)"
-DCMAKE_BUILD_TYPE=Release
Debug build
cmake .. -G Ninja
-DCMAKE_PREFIX_PATH="$(brew --prefix qt@6)"
-DCMAKE_BUILD_TYPE=Debug
cmake --build . -j$(sysctl -n hw.ncpu)
Troubleshooting
Problem Fix
Qt6 not found Run brew install qt@6 and set CMAKE_PREFIX_PATH
ScintillaEdit.h not found The Scintilla Qt sources are at 3rdparty/scintilla/qt/. CMake finds them automatically.
Linker error on CoreFoundation Pass -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0
Current Implementation Status
Feature Status
Qt window + tabs (document mode, close buttons) ✅ Completed
Scintilla editor (ScintillaEdit Qt widget) ✅ Completed
File open / save / save as / save all ✅ Completed
Encoding handling & BOM detection (Utf8_16) ✅ Completed
Syntax highlighting (C++, Python, JS, HTML, Markdown, XML, Shell, etc.) ✅ Completed
Find / Replace dialog (case, whole word, regex, wrap, direction) ✅ Completed
Go To Line / Offset dialog ✅ Completed
Preferences dialog (General, Editing, Margins, Appearance) ✅ Completed
About dialog ✅ Completed
macOS .app bundle configuration ✅ Completed
File browser dock panel ✅ Completed
Function list dock panel ✅ Completed
Plugin system (.dylib) + XML Tools ✅ Completed
Macro recording / playback ✅ Completed
Dual-Pane Split Editor (Multi-view) ✅ Completed
Session & Workspace State Persistence ✅ Completed
Standalone DMG packaging (package_dmg.sh) ✅ Completed
Development & AI Pair Programming
This native port was built using AI pair programming ("vibe coding"):
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。