cursor
cursor copied to clipboard
Can the code generator in the editor access code from other files when generating code?
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.