3

How do you close all the tabs to the right/left of the current tab in Notepad++?

Is there a plugin or an autohotkey script that can achieve this?

2
  • Do you want to close all the tabs to the right of the current tab or all the tabs to the left of the current tab? If you want to do both, i.e closing all the tabs but the current one, then see Dave Rook's answer.
    – amiregelz
    Sep 3, 2012 at 11:28
  • I want to close all the tabs to the right of the current tab or all the tabs to the left of the current tab but not both. What I want is available in firefox & chrome when you right click the tab context menu and select close tab to the right/close tab to the left.
    – Ishan
    Jan 19, 2013 at 3:07

2 Answers 2

2

In Notepad++ 6.5 onwards, there is a Close All to the Left, Close All to the Right option added to the Tab Context/ Right Click Menu as shown in the image below.

Notepad++ Tab Right Click Menu

1

You should have an option built in - right click on the tab you want to keep open and select "Close ALL But This"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .