How can I switch tabs in Notepad++ via Ctrl+PgUp/Down?

38

10

How can I run through the tabs in Notepad++ easily?

I would like to use Ctrl+PgUp/PgDn like in Firefox.

fschl

Posted 2010-02-17T06:58:00.380

Reputation: 503

Question was closed 2016-12-12T13:08:50.603

@DavidPostill the linked duplicate is younger than this one – Burgi – 2016-12-05T17:29:47.317

@Burgi That doesn't matter. It has a better answer. see the edit to the accepted answer to this one: "shoot, this question is answered far better here:

Switching to tabs to the right or left of the current tab in Notepad++

Wish I'd seen that first! :)" – DavidPostill – 2016-12-05T17:50:50.787

Answers

48

I'm using Notepad++ version 5.7, and it's simple to change the behavior to do exactly what you're looking for -- use Ctrl+PgUp/PgDown to change tabs just like in Firefox. Here's how:

Step 1: Click Settings | Shortcut Mapper... and make sure "Main menu" is highlighted at the top of the window. Then scroll to the very bottom of the list, and find the line that says "Switch to previous document". Double click on it's current shortcut value, and in the window that comes up change the shortcut to "Ctrl + Page up". Similarly, change the shortcut for "Switch to next document" to "Ctrl + Page down".

Step 2: Click Settings | Preferences... | MISC. tab. In the "Document Switcher (Ctrl+TAB)" box, uncheck "Enable MRU behavior". This is needed so that switching to the next/previous document will switch to an adjacent tab, rather than switching to the Most Recently Used tab.

EDIT: shoot, this question is answered far better here:

Switching to tabs to the right or left of the current tab in Notepad++

Wish I'd seen that first! :)

SteveK

Posted 2010-02-17T06:58:00.380

Reputation: 696

4In step 2, you'll want to uncheck "Enable" to disable the document switcher. This matches what the link above says too. Anyway, thanks for the info! – Sk606 – 2012-11-26T18:19:07.543

The settings weren't sticking for me after closing notepad++ but I found the solution here: http://ehc.ac/p/notepad-plus/bugs/938/

– anon58192932 – 2013-08-19T16:37:01.390

16

Use Ctrl + Tab . Same will apply to most tabbed applications. :)

Mazzi

Posted 2010-02-17T06:58:00.380

Reputation: 261

4Ctrl+Tab is smart tab, Ctrl+PgUp/Down is cycling tabs in order. – Erik Bergstedt – 2016-01-25T09:10:23.250

4And also don't forget to disable "Document Switcher" in preference. – user1032613 – 2013-04-01T21:52:30.980

1

Use Cntrl+Shft+Tab to run through the documents.

From All the keyboard shortcuts

Ctrl+Tab switches between 2 documents.

Adriaan Stander

Posted 2010-02-17T06:58:00.380

Reputation: 376

1

To enable Ctrl+PgUp/Down tab-switching behaviour, use AutoHotkey script:

#IfWinActive, ahk_class Notepad++
^PgDn::send {XButton2}
^PgUp::send {XButton1}

This script has a minor bug: when Notepad++ window is focused but the mouse pointer is placed outside of it, then the AutoHotkey {XButton2} will go to the window over which the mouse pointer floats. (Has anybody found a better solution?)

This script is based on the one taken from this blog.

Michał Oniszczuk

Posted 2010-02-17T06:58:00.380

Reputation:

0

set shortcut

Set the shortcut by yourself. my farvourite shortcut is to use Alt + 1/2/3 to switch to Tab 1/2/3

hustljian

Posted 2010-02-17T06:58:00.380

Reputation: 111

-1

For quick tab switching I could recommend you my free open source plugin 'NavigateTo' - https://github.com/young-developer/nppNavigateTo/releases

This plugin is something like NavigateTo in Visual Studio but it is more simple. It allows you to quickly search and navigate between opened files(tabs)

You can open plugin form under the “Plugins > Navigate To ” menu in Notepad++ or use the keyboard shortcut Ctrl +COMMA to bring up the “Navigate To” dialog and then search by filename(path) and press Enter to navigate to opened file.

Oleksii Maryshchenko

Posted 2010-02-17T06:58:00.380

Reputation: 1

Can you explain what your plugin actually does? There is no readme on your github site ... – DavidPostill – 2016-12-05T13:40:08.897

@DavidPostill, This plugin is something like NavigateTo in Visual Studio but it is more simple. It allows you to quickly search and navigate between opened files(tabs). – Oleksii Maryshchenko – 2016-12-05T14:17:21.837

https://github.com/young-developer/nppNavigateTo/blob/master/README.md – Oleksii Maryshchenko – 2016-12-05T14:18:34.317

@OleksiiMaryshchenko - You have multiple identical answers, that all recomend your software, and none of the follow the guidlines to software recomendations here at Supuser. On top of that, you only need one answer that suggests you tool, flag the other questions as duplicates as the one question you answer. You should Improve the quality of your answers – Ramhound – 2016-12-05T15:28:11.903

@Ramhound , Done – Oleksii Maryshchenko – 2016-12-05T16:21:18.410