User Tools

Site Tools


pycharm_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pycharm_notes [2021/05/07 22:18] – [useful links] rajupycharm_notes [2023/04/04 20:23] (current) – [release history] admin
Line 1: Line 1:
 ===== dummy ===== ===== dummy =====
 +==== configure pycharm with pytest ====
 +<code>
 +File -> Settings -> Tools -> Python Integrated Tools -> Testing -> Default test runner -> select pytest from the dropdown -> OK
 +</code>
 +
 +Tested with pycharm 2022.1
 +
 +Ref: https://stackoverflow.com/questions/6397063/how-do-i-configure-pycharm-to-run-py-test-tests
 +
 +==== mark import as used ====
 +On the unused import line press Alt+Enter -> "Optimize imports" -> Disable inspection
 +
 +Ref:- https://intellij-support.jetbrains.com/hc/en-us/community/posts/206592765-Marking-an-import-to-prevent-deleting-it-with-optimize-imports-
 +
 +To revert back to the normal behaviour
 +
 +Ctrl+Alt+s -> Inspections -> search for "unresolved references" -> select the one in Python -> check
 +
 +Ref:- https://intellij-support.jetbrains.com/hc/en-us/community/posts/206585365-Unused-imports-not-highlighted
 +
 +==== copy function name with the class name ====
 +  * ctrl+alt+shift+c
 +
 +==== Skip breakpoints ====
 +  * https://www.jetbrains.com/help/pycharm/stepping-through-the-program.html#force-run-to-cursor
 +    * Ctrl+Alt+F9 - run to cursor and skip all the break points in between
 +  * https://www.jetbrains.com/help/pycharm/stepping-through-the-program.html#force-step-over
 +    * Alt+Shift+F8 - step over the current line of code and ignore all the break points in between
 +
 +  * https://www.jetbrains.com/help/pycharm/stepping-through-the-program.html#run-to-cursor
 +    * Alt+F9 - run to cursor
 +  * https://www.jetbrains.com/help/pycharm/stepping-through-the-program.html#step-over
 +    * F8 - step over
 +
 ==== useful command line shortcuts ==== ==== useful command line shortcuts ====
   * Ctrl+E - recent files   * Ctrl+E - recent files
Line 6: Line 40:
 <code> <code>
 released, version released, version
 +2023-03-29, 2023.1
 +2023-03-09, 2022.3.3
 +2023-03-15, 2022.2.5
 +2022-08-16, 2022.2.1
 +2022-04-12, 2022.1
 +2021-07-27, 2021.2
 +2021-04-06, 2021.1
 2020-12-01, 2020.3 2020-12-01, 2020.3
 2020-07-28, 2020.2 2020-07-28, 2020.2
Line 28: Line 69:
  
 ==== useful links ==== ==== useful links ====
-  * Editor basics - https://www.jetbrains.com/help/pycharm/using-code-editor.html+  * Editor basics - https://www.jetbrains.com/help/pycharm/using-code-editor.html
     * -> Came to know about Ctrl-Shift-F12 shortcut from here     * -> Came to know about Ctrl-Shift-F12 shortcut from here
  
pycharm_notes.1620425903.txt.gz · Last modified: 2021/05/07 22:18 by raju