Did you know that you can close tabs in the editor and the tool windows of PyCharm without actually using the context menu commands? It is enough to point with your mouse cursor to a tab to be closed, and click the middle mouse button, or just use the Shift+click combination.
用鼠标的中键或Shift+单击关闭多个代码选项卡(tab)