Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
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 '12 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 '13 at 3:07

2 Answers 2

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

share|improve this answer
up vote 0 down vote accepted

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

Notepad++ Tab Right Click Menu

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.