Notepad++ Secrets: Sessions

© 2012, Martin Rinehart

Programmer's editor Notepad++ can open your previous "session" when launched (Settings / Preferences / MISC. / "Remember current session for next launch"). This is normally exactly what you want. Don't let it hide the fact that you have other options.

What Is a Session?

In Notepad++, a "session" is work on a given set of files. When you open a file it is opened at the top, without bookmarks. When your file is part of a session, it is opened, bookmarks are re-installed and it is positioned exactly as you left it.

If you will work tomorrow on the same files you are working on today, the default (reopen the previous session) will be perfect. But if another project intrudes in the middle of your work today, fear not. Save a session; do your other work and resume the saved session.

Session files are readable, editable XML.

Creating a Session

File/Save Session... is all you need. (A moment's initial thought is required. What folder do you want to use for session files? What file extension?)

Resuming a Session

File/Load Session... is all you need. The Session files are opened after any that you have open. Files already open are not changed.

There you have it. A Notepad++ feature that couldn't be simpler. If this is too simple, try the Project Panels for a rich set of IDE-like features.


Feedback: MartinRinehart at gmail dot com.

# # #