╔═══════════════════════════════════════════════════════════════════════════════╗ ║ JAVA DEVELOPMENT KEYBINDINGS CHEAT SHEET ║ ║ Leader Key = ║ ╚═══════════════════════════════════════════════════════════════════════════════╝ ┌─────────────────────────────────────────────────────────────────────────────┐ │ 🎯 TOP 10 - MEMORIZE THESE FIRST! │ ├─────────────────────────────────────────────────────────────────────────────┤ │ jr │ Run main class │ jb │ Build project │ │ jt │ Run all tests │ jm │ Run single test │ │ gd │ Go to definition │ K │ Show documentation │ │ vca │ Code actions │ db │ Toggle breakpoint │ │ │ Start/Continue debug │ jn │ New Spring project │ └─────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────┐ │ 📦 BUILD & RUN │ ├─────────────────────────────────────────────────────────────────────────────┤ │ jb │ Build workspace │ jr │ Run main class │ │ jc │ Clean workspace │ jR │ Run with arguments │ │ js │ Stop application │ jl │ Toggle logs │ └─────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────┐ │ 🧪 TESTING │ ├─────────────────────────────────────────────────────────────────────────────┤ │ jt │ Run test class │ jm │ Run test method │ │ jT │ View test report │ jtn │ Test nearest │ │ jtf │ Test file │ jts │ Test summary │ │ jto │ Test output │ jtw │ Test watch mode │ └─────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────┐ │ 🐛 DEBUGGING │ ├─────────────────────────────────────────────────────────────────────────────┤ │ jdc │ Debug test class │ jdm │ Debug test method │ │ jdd │ Configure DAP │ db │ Toggle breakpoint │ │ dB │ Conditional breakpoint │ dlp │ Log point │ │ │ Continue │ │ Step over │ │ │ Step into │ │ Step out │ │ dr │ Debug REPL │ dl │ Run last config │ │ du │ Toggle debug UI │ de │ Evaluate expression │ └─────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────┐ │ 🔧 REFACTORING (Visual mode - select code first!) │ ├─────────────────────────────────────────────────────────────────────────────┤ │ jrv │ Extract variable │ jra │ Extract all │ │ jrc │ Extract constant │ jrm │ Extract method │ │ jrf │ Extract field │ │ │ └─────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────┐ │ 🔍 LSP FEATURES │ ├─────────────────────────────────────────────────────────────────────────────┤ │ gd │ Go to definition │ K │ Hover documentation │ │ vws │ Workspace symbols │ vd │ View diagnostic │ │ vca │ Code actions │ vrr │ Show references │ │ vrn │ Rename symbol │ │ Signature help (ins) │ │ [d │ Next diagnostic │ ]d │ Previous diagnostic │ └─────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────┐ │ 🌱 SPRING BOOT & JDK │ ├─────────────────────────────────────────────────────────────────────────────┤ │ jn │ New Spring Boot project │ ju │ Update Spring vers │ │ jv │ Change JDK version │ │ │ └─────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────┐ │ 💡 QUICK TIPS │ ├─────────────────────────────────────────────────────────────────────────────┤ │ • Type 'sysout' + Tab → System.out.println() │ │ • Type 'psvm' + Tab → public static void main(String[] args) │ │ • jtw enables watch mode - tests run on save! │ │ • vca shows code actions - generate getters, constructors, etc. │ │ • db on a line, then jdm to debug test │ └─────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────┐ │ ⚡ WORKFLOW EXAMPLES │ ├─────────────────────────────────────────────────────────────────────────────┤ │ RUN CODE: jb → jr │ │ TEST CODE: jt (all tests) or jm (one test) │ │ DEBUG: db (set breakpoint) → jdm → (step) │ │ REFACTOR: Visual select → jrm (extract method) │ │ NEW PROJECT: jn (Spring Initializr) │ └─────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────┐ │ 📝 VIM COMMANDS │ ├─────────────────────────────────────────────────────────────────────────────┤ │ :JavaRestart Restart JDTLS language server │ │ :Mason Manage LSP packages │ │ :LspInfo Show LSP status │ │ :checkhealth java Run Java health check │ │ :JavaProjectInfo Show project information │ └─────────────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────┐ │ 🎓 LEARNING PATH │ ├─────────────────────────────────────────────────────────────────────────────┤ │ Week 1: jr, jb, gd, K │ │ Week 2: jt, jm, vca, vrn │ │ Week 3: db, , jrm, jn │ │ Month 1: Master everything - it becomes muscle memory! │ └─────────────────────────────────────────────────────────────────────────────┘ ╔═══════════════════════════════════════════════════════════════════════════════╗ ║ 📍 Config Location: ~/.config/nvim/after/plugin/java.lua ║ ║ 📚 Full Docs: ~/.config/nvim/JAVA_KEYBINDINGS.md ║ ║ 🚀 Test Project: /tmp/java-test-project ║ ╚═══════════════════════════════════════════════════════════════════════════════╝ Print this and keep it handy! 📋