Keyboard shortcut to close tab in Notepad++

Keyboard Shortcut Notepad++ to close tab

Most developers using a Windows system use Notepad++ to do day-to-day text and code quick editing, and as we all know, developers are keyboard short-cut savvy! If you are one of them and wondering how to close a tab using a keyboard shortcut, here is how,

  1. Open Notepad++,
  2. Be on the tab you want to close,
  3. Press Ctrl + W, this will close the tab you are in.

Note: If the tab is not saved and you try to close it you will get a pop-up saying, Save File?, select yes or no based on what you want to do with it.

Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -