Android Studio
Join lines smartly
In Android Studio, Ctrl + Shift + J will join lines smartly. The keys are the same on a Mac.
Where it works: Editor
Every documented variant
| System | Environment | Keys |
|---|---|---|
| Mac | Desktop app | CtrlShiftJ |
| Windows | Desktop app | CtrlShiftJ |
Where this comes from
Keyboard shortcuts - Android Studio - Android Developers
Documentation checked on 2026-09-14. That is a documentation review, not a test run inside the application.