Creating a new class file

I created some code in main.py which included a class definition. e.g.

class MyClass:
def init(self):

then selected the class code, clicked Cmd K and typed “Put this code in a separate class file”.

Cursor removed the code and created an import statement, but I cannot find the class file in the left panel or anywhere else.

Hi @julian7 ,

I don’t believe Ctrl + K has multi-file create and edit capabilities.

Ctrl + K is more intended for generating/refactoring code and asking quick questions within the particular file where it is being invoked.

Multi-file creation and editing is more in the realm of Ctrl +I (Composer) functionality.

1 Like