Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a single line of code in PyCharm

Tags:

I'm coming from RStudio, so forgive my naievete.

In RStudio it's really nice to be able to run lines by simply pressing Ctrl+Enter on the line. This sends the line of code directly to the console, which makes building functions really easy because you can work through each line to check for problems. However, in Pycharm this doesn't appear to be a feature; instead, you select with a mouse and run code (https://www.jetbrains.com/help/pycharm/loading-code-from-editor-into-console.html).

This seems like a cumbersome way to write code. Is there a way to run a single like of code like in RStudio?

like image 299
Vedda Avatar asked Apr 03 '18 19:04

Vedda


1 Answers

ALT+SHIFT+E will execute in console.

CTRL+SHIFT+A will let you search for hotkeys.

like image 138
krflol Avatar answered Sep 22 '22 09:09

krflol