Posts

Showing posts with the label visual-studio-code

What is the “When” and “Command” for ctrl-P panels?

Image
Clash Royale CLAN TAG #URR8PPP What is the “When” and “Command” for ctrl-P panels? I'm trying to create my own key shortcut to act as the arrow keys in Visual Studio Code. When I hit "ctrl-p" it pops up a window that I can navigate. However, when I use my special keybinding, which I've set as { "key": "alt+i", "command": "cursorUp", "when": "textInputFocus" } it does not move up to the next option like pressing the up arrow does. I'm guessing this is due to having either the wrong command or the wrong "when" for getting the keymap to trigger when that window is open. Normally in Atom I'd just use the key-binding-resolver, but Visual Studio Code doesn't appear to have that yet. What is the correct command and "when" to navigate through the panels such as the "ctrl-p" panel in Visual Studio Code? 1 Answer ...

Visual Studio Code: How to configure includePath for better IntelliSense results

Image
Clash Royale CLAN TAG #URR8PPP Visual Studio Code: How to configure includePath for better IntelliSense results so I am a complete beginner to using Visual Studio Code and I have no clue what I am doing. I've searched around (maybe not enough), but I cant find just a simple explanation for someone like me on how to configure the c_cpp_properties.json file that I am redirected to whenever I click on the yellow lightbulb next to a line that is underlined with a green squiggle. Lightbulb example c_cpp_properties.json I just want to know what to put in the .json to make IntelliSense work properly This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. 2 Answers 2 From: https://code.visualstudio.com/docs/languages/cpp Below you can see that the MinGW C++ include path has been added to browse.path for Windows: { "name": "Win32...

How to switch text case in visual studio code

Image
Clash Royale CLAN TAG #URR8PPP How to switch text case in visual studio code How does one switch the case of highlighted text in Visual Studio Code? VS allows this via CTRL+SHIFT+U and CTRL+U. Is there a command binding that I can set up to do this, or is it by default some other key combination? I can't find any relevant shortcuts in key bindings. Probably this function is not supported in the current version. – yushulx May 18 '15 at 3:27 Update: it is supported now. Go to File > Preferences > Keyboard Shortcuts and search for "Transform". – Dinei May 8 '17 at 16:16 5 Answers 5 Ec...

Docker dev environment, pylint unable to import error

Image
Clash Royale CLAN TAG #URR8PPP Docker dev environment, pylint unable to import error I have a problem, I have been using a docker environment for my django 2.0 project and pylint was working fine but now it's showing the unable to import module error. I'm aware that the import error question has been asked many times but it was always for a venv setup rather than docker environment setup. I'm not sure what triggered the error, but possibly because I deleted my old containers, volumes, images and started from scratch. I'm using Python 3 and VSCode on Manjaro Linux. Thanks in advance if anyone can help. To add "python.linting.pylintArgs": ["--load-plugins", "pylint_django"] in settings results in real errors not being reported too. try to re-build the container/image – Jerin Peter George 22 mins ago ...

Does vscode webview supports javascript?

Image
Clash Royale CLAN TAG #URR8PPP Does vscode webview supports javascript? I want to display the configuration (a json file) of my extension in a webview then user can change some configuration then save back to json file. I can read the html file and json in my extension, then use interpolation to generate the html string. But it seems that the javascript in html string didn't work. I tried to test with a simple html with a simple javascript script: <!DOCTYPE html> <html> <body> <h1>My First Web Page</h1> <p>My First Paragraph</p> <p id="demo">demo</p> <script> document.getElementById("demo").innerHTML = "succesfull"; </script> </body> </html> In my extension.ts : extension.ts vscode.commands.registerCommand('extension.sayHello', () => { const editor = vscode.window.activeTextEditor; if (!editor || !editor.viewColumn) { return; } let column ...

How I Can Run NPM Commands in VSCode Terminal?

Image
Clash Royale CLAN TAG #URR8PPP How I Can Run NPM Commands in VSCode Terminal? i want to work on npm terminal in VSCode such as git and i install an extension to support NPM but didn’t work and i just got the error 'npm' is not recognized as an internal or external command,operable program or batch file. EDIT i’m already installed node.js , i’m just want to work in the regular command prompt rather than node.js cmd and i got errors but it worked well when i open cmd as an admin after adding 'C:Program Filesnodejs' to the path. now how i work with npm in cmd without open it as an admin ? i think it’s a permissions issue so if anyone help me solve it ! Install Node.js from (nodejs.org) – Alex Baban 1 hour ago Node.js tutorial in VS Code – Gino Mempin 59 mins ago ...