Visual Studio Code doctrings not showing - visual-studio-code

Using Python in Visual Studio Code, when I am inside parentheses after a function, Visual Studio Code shows only available function signatures. No doctstrings are shown, although this used to be the case. I have searched Internet and stack overflow to no avail (found things, but not helpful). This problem occurs both in Jupyter notebooks and .py scripts. I have Python and Pylance extensions installed.
I've tried both hovering over the code and pressing ctrl + I within parentheses. Ctrl+k also did not work for me.
How can I recover the appearance of doctrings for dynamic/quick info, short of reinstalling VS Code?
Versions:
VS Code 1.74.2
Python extension v2022.20.1
Pylance extension v2023.1.10

I disabled and reenabled the Python extension. Disabling disabled both Python and Pylance extensions, and reenabling reenabled both; so I'm not sure if culprit was Python or Pylance extension. In any case, docstrings are showing now.

Related

Visual Studio Jupyter notebook

When I want to work in a kernel of my Jupiter notebook open in Visual Studio, I have to type "I" to write something. If I don't do that and I start to write my code, nothing happened and sometimes it's clear the content of my kernel. Do you know why I have to type "I" and why can I no directly write my code?
The problem was that Visual Studio Code was bound to vim. After uninstalling it, the problem was solved.

search analyzer and formatter for Visual studio code

I would like to find a linter to analyze the formatting of my code, and also use the linter locally to format my code. And I would want to be able to do that with Visual studio code (and ideally, also Visual studio).
Right now, I am using Visual studio with resharper. But it's way too slow for me.
So I installed visual studio code, installed the extension omnisharp and roslynator, to be able to have the same formatting rules as resharper. So it works well, I configured my config file to display error when a rule is not respected, like that :
My issue is, I can't find a way to fix all these issue with a shortcut, like I use to do with Visual studio and resharper.
The shortcut shift+alt+F does not fix all my errors, and the command omnisharp "fixall" act weirdly, it remove my function Hi..
Do you have suggestion of setup with visual studio code to be able to format the code directly (not via a command line, but from a shortcut), and as advanced as resharper, and that could also work as a linter to analyze the code on the CI?

Visual Studio Code's intellisense is not working

For some reason my VScode's intellisense is not working. I'm using the M1 Macbook pro and zsh for my terminal, not sure if that's relevant but I'm no longer getting any dropdown options. I tried expanding the box of suggestions but there's nothing other than a syntax suggestion:
Any suggestions? I assumed this was supposed to work out of the box, I deactivated Emmet as well but it's not budging.

VSCode Intellisense Not Working In Jupyter Notebook Extension(MacOS)

I have an issue with VS Code which I recently installed in my MacOS BigSur.
I tried out the Jupyter Notebook extension and in their documentation it says that they have full intellisense support for this extension as well.
Intellisense in Jupyter Notebook in VSCode works well for completing variables, functions,methods,etc....
The only issue I have is that I am not able to get the arguments/parameter information, though it is working fine with the python extension of VSCode
I tried out things like Shift+TAB...which works in JupyterNotebooks(not the VS Code version).
Is this a bug that I am facing...or is it just like that. Can you also please suggest as to how to make this work.
Edit May 12, 2021: With the Pylance language server (now the default), I now get parameters and type hints.
According to this issue on GitHub, the arg/param info is not supported on stable VS Code. It looks like you need to use the "Native Notebook" in VS Code Insiders (the beta) and use the "Pylance" language server Extension.
I haven't tried this solution myself (not sure I want to install Insiders), but just changing the language server to "Pylance" at least gives you signatures.

Cursor overwrite mode in vscode?

I can't seem to find any way to put the cursor into 'overwrite' mode - as in when you press the insert key and newly typed characters overwrite the existing characters inline. I haven't found any reference anywhere online to the omission or inclusion of such a feature in vscode, but it seems to be a fairly commonly used feature. Does this exist?
I too was missing the overtype mode in Visual Studio Code, so I went ahead and wrote an Overtype extension to add the behavior!
You can install it by opening the command palette and entering:
ext install overtype
Update: As of this writing, VS Code still does not have overtype built in, and the original extension seems to no longer be maintained. There is a more up-to-date fork here.
It seems to be working fine for me both ways I can switch it with shift + i on latest VS Code and macOS system.
For me, I think it's because of an extension called Vim (Vim emulation for Visual Studio Code). I was tired of this problem. Just going through all the extensions and settings, Finally I found this solution. By uninstalling this Vim extension I was free of this error.