visual-studio-code

VSCode Keep asking for passphrase of SSH key

半腔热情 提交于 2021-01-26 08:50:46
问题 I have recently upgrade my VSCode version 1.10.2. As I put passphrase on my private SSH key, it started to ask for it frequently even when I entered it multiple times, which is very annoying. Is there anyway I can get rid of it? Thanks. 回答1: Yes , you can avoid this prompt, without removing the passphrase. To do so is usually fairly simple and relies on the ssh-agent program. First, before starting VSCode, at a bash shell prompt, run: $ eval `ssh-agent` This will start an ssh-agent process in

VSCode Keep asking for passphrase of SSH key

☆樱花仙子☆ 提交于 2021-01-26 08:50:19
问题 I have recently upgrade my VSCode version 1.10.2. As I put passphrase on my private SSH key, it started to ask for it frequently even when I entered it multiple times, which is very annoying. Is there anyway I can get rid of it? Thanks. 回答1: Yes , you can avoid this prompt, without removing the passphrase. To do so is usually fairly simple and relies on the ssh-agent program. First, before starting VSCode, at a bash shell prompt, run: $ eval `ssh-agent` This will start an ssh-agent process in

VSCode Keep asking for passphrase of SSH key

拟墨画扇 提交于 2021-01-26 08:50:09
问题 I have recently upgrade my VSCode version 1.10.2. As I put passphrase on my private SSH key, it started to ask for it frequently even when I entered it multiple times, which is very annoying. Is there anyway I can get rid of it? Thanks. 回答1: Yes , you can avoid this prompt, without removing the passphrase. To do so is usually fairly simple and relies on the ssh-agent program. First, before starting VSCode, at a bash shell prompt, run: $ eval `ssh-agent` This will start an ssh-agent process in

Command to toggle docstring in VSCode

时光毁灭记忆、已成空白 提交于 2021-01-26 03:14:36
问题 What command do I have to use in VSCode to toggle the docstring? I have searched in settings for docstring, help but nothing that makes sense shows up. 回答1: You can hit Ctrl + K Ctrl + I . This will execute the editor.action.showHover command and will display the same text that is displayed when you hover over for example a function. Unfortunately there seems to be no corresponding editor.action.hideHover command (I searched the keybindings.json ). But it should be possible to hide the text

Command to toggle docstring in VSCode

纵然是瞬间 提交于 2021-01-26 03:12:38
问题 What command do I have to use in VSCode to toggle the docstring? I have searched in settings for docstring, help but nothing that makes sense shows up. 回答1: You can hit Ctrl + K Ctrl + I . This will execute the editor.action.showHover command and will display the same text that is displayed when you hover over for example a function. Unfortunately there seems to be no corresponding editor.action.hideHover command (I searched the keybindings.json ). But it should be possible to hide the text

eslint - Optional chaining error with vscode

為{幸葍}努か 提交于 2021-01-26 03:11:11
问题 I am seeing a a red underline when I'm using an optional chain, but the code runs fine as I am on node 14 Here's my setup: node 14.1.0 eslint "^6.8.0" .eslintrc.js module.exports = { "env": { "node": true }, "extends": [ "eslint:recommended", ], "parserOptions": { "sourceType": "module", "ecmaVersion": 2020 }, "rules": { }, } 回答1: You should use babel-eslint with your eslint config. This allows you to lint ALL valid Babel code with eslint. Currently eslint does not support all ES2020 features

eslint - Optional chaining error with vscode

痴心易碎 提交于 2021-01-26 03:10:21
问题 I am seeing a a red underline when I'm using an optional chain, but the code runs fine as I am on node 14 Here's my setup: node 14.1.0 eslint "^6.8.0" .eslintrc.js module.exports = { "env": { "node": true }, "extends": [ "eslint:recommended", ], "parserOptions": { "sourceType": "module", "ecmaVersion": 2020 }, "rules": { }, } 回答1: You should use babel-eslint with your eslint config. This allows you to lint ALL valid Babel code with eslint. Currently eslint does not support all ES2020 features

Debug C app using visual studio code and Vagrant runnig ubuntu

旧巷老猫 提交于 2021-01-25 01:44:09
问题 I boot up ubuntu using Vagrant to compile some C code, now i like to debug this code using Visual Studio Code. How can i setup some kind of remote debug where the compiler and source code and all on the Ubuntu VM And I only using VSCode from windows? PS. This used to work very well with windows WSL linux . But now i like to achieve the same result with Ubuntu using Vagrant ( using Virtual Box ). Can it be done? UPDATE I tried as suggested but I'm getting error : my virtual box config from

Debug C app using visual studio code and Vagrant runnig ubuntu

泄露秘密 提交于 2021-01-25 01:43:47
问题 I boot up ubuntu using Vagrant to compile some C code, now i like to debug this code using Visual Studio Code. How can i setup some kind of remote debug where the compiler and source code and all on the Ubuntu VM And I only using VSCode from windows? PS. This used to work very well with windows WSL linux . But now i like to achieve the same result with Ubuntu using Vagrant ( using Virtual Box ). Can it be done? UPDATE I tried as suggested but I'm getting error : my virtual box config from

Debug C app using visual studio code and Vagrant runnig ubuntu

巧了我就是萌 提交于 2021-01-25 01:42:51
问题 I boot up ubuntu using Vagrant to compile some C code, now i like to debug this code using Visual Studio Code. How can i setup some kind of remote debug where the compiler and source code and all on the Ubuntu VM And I only using VSCode from windows? PS. This used to work very well with windows WSL linux . But now i like to achieve the same result with Ubuntu using Vagrant ( using Virtual Box ). Can it be done? UPDATE I tried as suggested but I'm getting error : my virtual box config from