Create New Macro (Shortcut) to Copy Paste and Execute Code in the Integrated...
The ProblemAn operation I do a lot is to highlight/select code on the editors and then paste it on the integrated terminal to execute it. While I got pretty fast at using Ctrl + c, Ctrl + backtick,...
View ArticleConfigure expand selection in Visual Studio Code to select the whole identifier
The first invocation of the Expand Selection (Alt-Shift-RightArrow by default) in VSCode selects camel-case sub-word under the cursor. For example, when the cursor is placed inside a camel-case...
View Articlemany pip files, which is right?
I tried to type pip install pipenv in Visual Studio Code, then i got 'pip' is not recognized as an internal or external command, operable program or batch file. So i was looking for some solution at...
View ArticleCan I define a task for Replace Operation in vscode?
I replace every debugger; phrase with "" in my solution some times a day. I thought it could be well if there is a way to define a task for this operation. Do you know the solution. is there this feature?
View ArticleHow to create a shortcut to print a variable (vscode)
How can I create a custom shortcut for generating code that will print a selected variable in vscode? [1] arr = [1,2,3,4] # I press double left mouse button on 'arr' [2] print(arr) # Then I press...
View ArticleToggling the maximization of the current window (for any window type)
I want to define a single and universal keyboard binding that allows me to toggle the maximization of the current window, regardless of the type of window. At a minimum, a window could be:Any single...
View Articlevs-code , code runner not working properly
in vs code, code runner extension not clearing the previous output in terminal, even though "whether to clear previous output" is checked, also "run in terminal" is checked, i re-installed both vs code...
View ArticleHow to increment a variable, like the line number, in a vscode snippet
I have a multi-line snippet in VScode. The problem is, TM_LINE_NUMBER gives the number of the line where the snippet was triggered, I need to increase that number by 1 so it equals the line number that...
View ArticleWrite a custom snippet output above the current line in Visual Studio Code
Is it possible to write the output of snippet to the line above the current line? I'm trying to create a snippet where you select an element name from csharp file and it inserts a Summary section above...
View ArticleEslint is working from terminal, but not showing error in the editor UI (VSCode)
I've installed the ESlint by following these steps: https://travishorn.com/setting-up-eslint-on-vs-code-with-airbnb-javascript-style-guide-6eb78a535ba6Now, my ESlint is working from the terminal, but...
View ArticleCustom global variable does not exist
I am trying to extend the Global object in Node, but am having no luck at all. Here is what I have:custom.d.ts:declare namespace NodeJS { interface Global { test: string; } } tsconfig.json:"files": [...
View ArticleHow to run current line and advance in VS Code? (windows)
Let's say I have a few lines I want to run one-by-one.x=5 y=6 print(x+y) I set the cursor on x=5 and press Shift + Enter, which according to the settings does this: Python: Run current cell and...
View ArticleOpen Containers in Remote SSH Hosts using VSCode
Using the Remote Development extension pack, Visual Studio Code is able to open a Docker container running on the current system, and to open a folder on a remote host connected using SSH.If there is a...
View ArticleVS Code Git: Revert to a specific commit
I am using VS Code and want to go back to a specific commit A. I am currently at C:A -> B -> C Last commit I did was C, now I want to set all files back to their status at the time of commit A....
View ArticleDifferences between Code OSS and Visual Studio Code
As developers stated here, The cool thing about all of this is that you have the choice to use the Visual Studio Code branded product under our license or you can build a version of the tool straight...
View ArticleHow to configure tsconfig for root?
I have tsconfig.json with the following options:{ "extends": "../../tsconfig.json", "compilerOptions": { "baseUrl": "./src/lib", "outDir": "../../out-tsc/lib" } } As you can see I set "baseUrl":...
View ArticleHow to make VS Code compound debugger run by default?
I have the following .vscode/launch.json config:{ "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch", "name": "Next: Chrome", "url": "localhost:3000", "webRoot":...
View ArticleIs it possible to use yarn-pnp with typescript/vscode?
yarn-pnp is awesome - no more node_modules! But without node_models, typescript/vscode can't seem to resolve modules correctly.Is there a way to make this work? Thanks!
View ArticleVSCode debugger can not connect to puppeteer instance run by Karma
I have Angular frontend tests run with Karma and Jasmine that I want to debug with Visual Studio Code. The tests are run in a puppeteer instance.When the debugger tries to connect, it times out, and...
View ArticleHow do I specify the dockerfile stage in Visual Studio Code Remote?
I have a multi-stage Dockerfile. I want to configure VS Code Remote to build the dev stage of the Dockerfile rather than the last stage in the Dockerfile.I'm pretty sure this configuration would go in...
View Article