PyCharm - always show inspections - python

PyCharm displays little bars on the scroll bar for things like code warnings. This feature is called "inspection".
If you move the mouse cursor over a bar, it shows a preview of the code annotated with the inspection.
I find this really fiddly, and I'd actually like full inspection notices to be displayed all the time in the normal editor, just like it appears in the small preview.
Is there any way I can achieve this?

Using the default keymap, you can use F2 to jump to the next highlighted error and then Ctrl+F1 to show the tooltip.

According to this PyCharm's documentation there seems to be an Inspection Tool Window which displays inspection results on separate tabs..
You can access the tool window through menu Code | Inspect Code.
I just tried it and it showed a tab like this:

Press Alt+6
Or, click "Problems" on the bottom-left
Or click the error icons at the top-right of the text editor.
This gives a list of problems for the file open in the currently active tab. It automatically updates when you change tabs:

Related

Qt Creator - How to get rid of "line too long" warning in python scripts

As the title suggests I wonder if it is possible to set the length of a line in python scripts when someone uses Qt Creator as an IDE, in order to get rid of this annoying warning:
I found at least how to hide these annotations (for Mac Os users): First method is to go with the mouse on the top-left corner of the screen and to sequentially click Qt Creator->Preferences. Immediately the Preferences Dialog Window will appear inside the Qt Creator working window. There, have to go to Text Editor in the left panel and in the right panel associated with Text Editor, in the horizontal tabs have to click on Display tab. Scroll down and uncheck Line annotations. The second and the third methods imply to place the mouse over one particular annotation (second method) or over one of the small yellow triangles which are shown in the left column of the "lines numbers column" (third method) and in both cases after one or two seconds will appear a floater and inside that floater with blue letters will be the "Annotation settings" message. Clicking on that message will open the same Preferences Window like in first case. And there will be repeated the procedure described in the first case.

Remove question mark and Enter/Exit Button in RISE (Jupyter Notebook)

When using RISE in Jupyter Notebook, is there any possible way to not display the question mark (lower left corner) and the Exit/ Enter Button (upper left corner)?
Found a solution. Go to main.js located in /jupyter/nbextensions/rise, there delete both
buttonExit();
buttonHelp();
Pressing the comma (,) will actually hide/reveal the x and ? buttons, as well as the chalkboard buttons. To hide the controls, you need to uncheck the box in the settings with 'controls':
You can use shift + C or the Nbextensions menu from the main jupyter page to get to the RISE settings.
You can also set the slidenumber as blank to not show any slide numbers, and uncheck the option for the progress bar. Then with controls, menu items, progress bar, and slide numbers gone, you have a clean presentation.
Related github issue: https://github.com/damianavila/RISE/issues/244
May be you are asking How to get
from
you just need to press "," in command mode

how do I activate interactive python help in visual studio like in spyder

I'd like to get automatic context help in VS2017, similar to what is displayed inside spyder, when I click on an object that has help for it in the python manuals.
I's this possible?
interactive window example from spyder
I'm looking for a window that is part of the IDE, and not a pop-up that is shown when "." is pressed
You can hover your mouse over an object or method to see a tooltip of it.
You can also use the dot operator(.) to bring up intellisense for a list of properties and methods. If intellisense doesn't immediately pop up after pressing the . key, you can also press ctrl+space to force it open.
Lastly, you can press F12 with your cursor in an object, method or variable to go to its definition.

How do I make pyCharm stop hiding (unfold) my Python imports?

Every time I open a Python file PyCharm will hide all imports and shows:
import ...
within the editor.
I have to manually unfold it to see the imports. Where do I find the setting to undo auto-hiding of import statements?
As this question may be useful for people who also are not looking for the term "code folding", I'll make my comment an answer.
As extracted from IntelliJ IDE Web Help, but also worked on PyCharm CE 3.4.1:
Open the IDE Settings (File > Settings, or Ctrl+Alt+S).
Under the "Editor" node, click "General" and then "Code Folding". The "Code Folding" page is displayed.
In the "Collapse by default list", select the check boxes to the left of the code constructs you want to be displayed collapsed. So here you can uncheck "Imports".
Apply changes.
The image below shows what it looks like:
Actually in pycharm 2016.1 it's Editor -> General -> Code Folding

Hotkey on viewing docstring of function in PyDev?

In PyDev, when cursor hovers function name, tooltip with docstring text appears.
Is there way to assign a hotkey on this event, for viewing docstrings using only keyboard?
As far as I know, there is no direct keyboard shortcut for this when working with PyDev. For JDT, CDT or PDT F2 should work, but it does not in PyDev.
However, as an alternative, you can hit CTRL+SPACE which brings up the content assist, which will show the documentation right next to it.
Btw: the hover tooltip does not show the docstring only, but the whole content of a method.
Here is how the content assist should look like:
pythonpydeveclipsekeyboard-shortcutsdocstring

Categories