Close tabs according settings when switching

### Close all tabs

According settings **Close only saved tabs**,  close all the files related to the previous project.