How do I redirect input and output with PyCharm like I would on the command line? November 27, 2023 by Tarik (added in Pycharm 5) In the Edit Configurations screen under Logs tab check the option: Save console output to file and provide a FULL PATH to the outputfile. thats it – works like a py-charm