Notepad ++ - Manipulação eficaz de grupos de tags

1

O que eu quero:

Uma entrada de menu na qual posso adicionar algo como espaços de trabalho, onde cada espaço de trabalho salva suas guias automaticamente. Para que eu possa alternar rapidamente entre um conjunto de guias abertas através desse menu.

Existe algo assim?

    
por prom85 24.08.2016 / 13:45

1 resposta

0

Eu quero alternar rapidamente entre um conjunto de guias abertas por meio desse menu.

Isso já foi incorporado ao Notepad ++ como Sessões .

Você pode usar:

  • Menu "Arquivo" > "Carregar sessão ..."

  • Menu "Arquivo" > "Salvar sessão ..."

enter image description here

Sessões e projetos

How to store and retrieve sets of files as they were opened in Notepad++

Sessions keep track of what files are opened in Notepad++, with some extra information like file positions and highlighter for the file. The detailed contents of session files is described in the relevant section of Editing Configuration Files.

Sessions do not backup files - see "Settings" -> "Preferences" -> "Backup/Auto-Completion" about this.

There are exactly 5 controls in Notepad++ that relate to sessions:

  • "File" > "Load session...."
  • "File" > "Save session...."
  • "Settings" > "Preferences" > "Backup" > "Remember current session for next launch"
  • "Settings" > "Preferences" > "Backup" > "Enable session snapshots and periodic backups"
  • "Settings" > "Preferences" > "MISC" > "Session file ext.:"

This page is about using sessions to manage projects (see Project Management) because it is their main use and because, before version 5.9.4, it was the only available tool.

Start a new project

Open all existing file that are to be on the project. You can plan for the future by adding a few new files you expect to have contents soon. Click "File" > "Save session", and save to some session file.

If you have some foresight, create a project folder first, and then save the current session. We'll see later how this can be useful.

Add/Remove

Open Notepad++, then click "File" > "Load session". Choose your session file. Now either open the file to be added, or close file to be removed. "File" > "Save session", you are done. By the way, the last current session is remembered in <Notepad++.exe folder>\session.xml.

Session files

They are plain xml files, with some obvious structure you can borrow from existing session. This means you can edit them manually, if this is easier. In particular, session files will record bookmarks and how text is folded.

By default, session files have the .xml extension, but you can change that from "Settings" > "Preferences" > "MISC" > "Session file ext" (look in the lower right corner).

session.xml does not get renamed when you change the default session extension. This is not an issue, because you can ask Notepad++ to load any file, as long as it has contents that can be understood.

    
por 24.08.2016 / 14:54

Tags