Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python

Elizabeth McInerney
Elizabeth McInerney
3,175 Points

Renaming a file in workspaces

I want to copy the contents of my shopping_list_3.py into a new file called shopping_list_4.py, just like the instructor does in the video. How do I accomplish this? I can make a new file called shoppint_list_4, but I don't seem to have cut and paste functionality. I also can't duplicate or rename shopping_list_3.py. How do you make the new file containing the previous code?

2 Answers

After you highlight what you want to copy you can press CTRL+C to copy it then CTRL+V to paste into a new file.

Elizabeth McInerney
Elizabeth McInerney
3,175 Points

That did the trick, thanks! How do I delete files from my workspace that I no longer want?

You should be able to right-click the file in question on the left hand side of the screen and choose delete.