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
Last revisionBoth sides next revision
pycharm_notes [2021/05/07 22:13] – [useful links] rajupycharm_notes [2023/02/14 22:13] – [configure pycharm with pytest] raju
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
 +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 66:
  
 ==== 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
  
Line 37: Line 75:
   * Where are run debug configurations stored?\\ See:   * Where are run debug configurations stored?\\ See:
     * https://www.jetbrains.com/help/pycharm/run-debug-configuration.html     * https://www.jetbrains.com/help/pycharm/run-debug-configuration.html
 +
 +  * pycharm tutorial - https://www.jetbrains.com/help/pycharm/quick-start-guide.html
 +  * checkout code from subversion repository - https://www.jetbrains.com/help/pycharm/checking-out-files-from-subversion-repository.html
 +  * add directory to the module path - https://stackoverflow.com/questions/28326362/pycharm-and-pythonpath
 +  * Feature-by-feature comparison between community and professional versions - https://www.jetbrains.com/pycharm/features/editions_comparison_matrix.html
 +  * https://www.jetbrains.com/help/pycharm/menus-and-toolbars.html - contains a picture showing the menus and toolbars
 +  * homepage - https://www.jetbrains.com/pycharm/
 +
 +  * documentaion in pdf - https://www.jetbrains.com/help/pycharm/2017.1/pycharm-2017.1-help.pdf . Does a similar thing exist for 2017.2?
 +  * Joining Lines and Literals - https://www.jetbrains.com/help/pycharm/joining-lines-and-literals.html
 +==== links to the documentation ====
 +  * Change project name - https://www.jetbrains.com/help/pycharm/renaming-projects.html
 +  * Exclude some directories from pycharm project - https://www.jetbrains.com/help/pycharm/excluding-files-from-projects.html
 +  * Find Tool Window - https://www.jetbrains.com/help/pycharm/find-tool-window.html
 +  * Where is a variable declared - https://www.jetbrains.com/help/idea/navigating-to-declaration-or-type-declaration-of-a-symbol.html
 +  * Always open a new project in a new window - https://www.jetbrains.com/help/pycharm/opening-reopening-and-closing-projects.html
 +  * check the log commits betwen two branches - https://www.jetbrains.com/help/pycharm/manage-branches.html#compare_branches \\ tags | git log branchA..branchB
  
pycharm_notes.txt · Last modified: 2023/04/04 20:23 by admin