code: def create_new_project(self):
          
          self.switch_to_plugin()
          active_project = self.current_active_project
          dlg = ProjectDialog(self)
          dlg.sig_project_creation_requested.connect(self._create_project)
          dlg.sig_project_creation_requested.connect(self.sig_project_created)
          if dlg.exec_():
              if (active_project is None
                      and self.get_option('visible_if_project_open')):
                  self.show_explorer()
              self.sig_pythonpath_changed.emit()
              self.restart_consoles()
docs: Create new project