cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Can the code generator in the editor access code from other files when generating code?

Open Hao1Zhang opened this issue 2 years ago • 0 comments

Hello, I am wondering if the code generator in the editor has the capability to access code from other files when generating code. Specifically, if there is a main.py file that has a main() function which calls another function located in a separate file, can the editor generate code for main.py based on that called function?

I have noticed that the code generator prompts and generates code based on the previous code in the current file, but I am curious if it has the ability to access code from other files as well.

Additionally, I would like to know how many tokens the code generator will read from one request. Is there a limit to the amount of code it can access at one time?

Thank you for your help.

Hao1Zhang avatar Mar 22 '23 23:03 Hao1Zhang