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.
Related
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.
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?
So I just started learning programming and I think something is messed up with my code runner in Visual Studio Code. When I try to use input in Python I can not write anything in the terminal. This problem came out recently. It writes that when I try to input anything that it "cannot edit in read-only editor". I also checked in here what could be the solution, but it did not help. Input still does not work. I am on Linux, and I also tried to uninstall the program and code runner as well, none of them worked so far.
Ps: I tried the Code-runner: Run in Terminal box check method, which did not work at all.
I simply cannot find an answer by googling, for, what is the command line shortcut that stands for Visual Studio Code. For example to check the version, and I know I can just use its built-in terminal and type --version but what if I want to check that from outside?
It's simply code.
code --version // to check version
code // opens visual studio code
I'm new to Visual Studio Code and have a few extensions installed, but what I want is to do what I do in notepad++ and set up a command so I can execute the open file (e.g. vbscript). I can do this easily in notepad++ but I've no idea how to do it in VS Code and the internet seems to not have much help either.
If it is possible, can it be done like the Python vs code extension and have the output window in a pane below the code?
thanks.
There is actually an Extension that will run a number of different languages for you.
Install the Code Runner Extension
Open the code file in Text Editor, then use shortcut Ctrl+Alt+N, or press F1 and then select/type Run Code, the code will run and the output will be shown in the Output Window.