visual-studio-code

Key mappings in a Visual Studio Code git-bash terminal

邮差的信 提交于 2020-12-15 01:48:09
问题 I'm using a git-bash terminal in Visual Studio Code. In a normal git-bash terminal outside Visual Studio code, (Ctrl+k) will clear to end of line. However when I do this in a Visual Studio Code git-bash terminal I get message "Waiting for second key of chord". How can I change behavior to be same as a standard git-bash terminal? Thanks. 回答1: I found it right after posting! Just needed to disable Terminal > Integrated : Allow Chords in the Settings. I didn't see this before & didn't know such

Key mappings in a Visual Studio Code git-bash terminal

大憨熊 提交于 2020-12-15 01:47:05
问题 I'm using a git-bash terminal in Visual Studio Code. In a normal git-bash terminal outside Visual Studio code, (Ctrl+k) will clear to end of line. However when I do this in a Visual Studio Code git-bash terminal I get message "Waiting for second key of chord". How can I change behavior to be same as a standard git-bash terminal? Thanks. 回答1: I found it right after posting! Just needed to disable Terminal > Integrated : Allow Chords in the Settings. I didn't see this before & didn't know such

How to paste clipboard text in VS Code Terminal

爱⌒轻易说出口 提交于 2020-12-13 18:59:50
问题 I have updated VS Code today on my Windows 7 machine. VS Code introduced Terminal inside the VS Code. Right-Click is disabled in Terminal. Is there any Keyboard shortcut to paste the text in VS Code? 回答1: Got answer, link Right-Click on the cursor line did the trick 回答2: With v1.40 you can set this : "terminal.integrated.rightClickBehavior": "paste" to always paste into the terminal with a rightclick. There are three other options there, including default (show the context menu), copyPaste

Recording a 'macro'? or a series of actions in Visual Studio Code?

与世无争的帅哥 提交于 2020-12-13 18:59:33
问题 I would need something like this. Once I create a folder within a project. A React Project for example. I could select that folder and run some kind of macro or series of actions that would do this. Provided that the name of the folder is Component for example, when the macro would be played it would do this: Create a file with the name, Component.js that would have some kind of snippet default content. Create a file with the name, Component.styled.js which again would have in it some kind of

Evaluating Environment Variables in VS Code Extension

五迷三道 提交于 2020-12-13 18:52:37
问题 I'm developing an extension in VS Code to add language support for OpenSCAD (Script-based 3D modeling program). Currently, I have been working on a way to open / preview a file in OpenSCAD from VS Code, which I have been able to do successfully using my own preview manager. My issue is that I want to add configurable naming formats when exporting an OpenSCAD file that use environment variables similar to those used in the tasks.json file. More info can be found here: https://code.visualstudio

How to paste clipboard text in VS Code Terminal

冷暖自知 提交于 2020-12-13 18:50:24
问题 I have updated VS Code today on my Windows 7 machine. VS Code introduced Terminal inside the VS Code. Right-Click is disabled in Terminal. Is there any Keyboard shortcut to paste the text in VS Code? 回答1: Got answer, link Right-Click on the cursor line did the trick 回答2: With v1.40 you can set this : "terminal.integrated.rightClickBehavior": "paste" to always paste into the terminal with a rightclick. There are three other options there, including default (show the context menu), copyPaste

Enable vendor prefix autocomplete in CSS files in Visual Studio Code

余生颓废 提交于 2020-12-13 07:37:39
问题 How can I tell VSCode to automatically add vendor prefixed style properties when adding a property without vendor prefixes added in CSS files (not SASS nor LESS files)? 回答1: I have been using css-auto-prefix plugin. For most of the CSS3 properties it works fine. Though still in beta version, improvements are going on.You should try this one, it saves time and energy. Perform following steps to install css-auto-prefix plugin in vscode. Open VS Code. Click Ctrl+Shift+X(on windows) or click on

Can I debug a dependent assembly from a powershell module

こ雲淡風輕ζ 提交于 2020-12-13 07:19:57
问题 I have a project it has two (or more) projects. For example: Shared.Standard Utility.PoSH The second is a PowerShell binary module that depends on the Shared.Standard class library/project/assembly. Can I debug the Shared.Standard library while I execute commands from the compiled module in a PowerShell session? I'm particularly curious about required config in vscode. 来源: https://stackoverflow.com/questions/59445038/can-i-debug-a-dependent-assembly-from-a-powershell-module

Can I debug a dependent assembly from a powershell module

倖福魔咒の 提交于 2020-12-13 07:19:47
问题 I have a project it has two (or more) projects. For example: Shared.Standard Utility.PoSH The second is a PowerShell binary module that depends on the Shared.Standard class library/project/assembly. Can I debug the Shared.Standard library while I execute commands from the compiled module in a PowerShell session? I'm particularly curious about required config in vscode. 来源: https://stackoverflow.com/questions/59445038/can-i-debug-a-dependent-assembly-from-a-powershell-module

VSCode not picking up ipykernel

瘦欲@ 提交于 2020-12-13 07:05:40
问题 I'm trying to use vscode with jupyter via the python extension. My pipfile looks like this: [[source]] name = "pypi" url = "https://pypi.org/simple" verify_ssl = true [packages] opencv-python = "*" [requires] python_version = "3.6" [dev-packages] ipykernel = "*" ipython = "*" jupyter = "*" To start the ipython interpreter i follow these steps: $ pipenv install $ pipenv shell $ code . using the Python: Select interpreter, i select the pipenv environment run code when i got to the code block by