visual-studio-code

when opening multiple files in vscode, only the first is actually loaded in memory

老子叫甜甜 提交于 2021-02-11 15:02:35
问题 For my job i'm frequently opening lists of files from the terminal. When i do this with vscode, they are opened and all the tabs are there. But only the files i have clicked though and looked at are loaded into memory. If i were to do a find and replace it would only bring up results from the files i have looked at. It also doesnt tell me how many files are open exactly which would be nice. These all seem like things other editors do by default. I was wondering what i have to do to enable

when opening multiple files in vscode, only the first is actually loaded in memory

时间秒杀一切 提交于 2021-02-11 14:58:18
问题 For my job i'm frequently opening lists of files from the terminal. When i do this with vscode, they are opened and all the tabs are there. But only the files i have clicked though and looked at are loaded into memory. If i were to do a find and replace it would only bring up results from the files i have looked at. It also doesnt tell me how many files are open exactly which would be nice. These all seem like things other editors do by default. I was wondering what i have to do to enable

I am trying to make some interesting changes to the editing area of vscode. I want to know whether the API supports the following two features?

限于喜欢 提交于 2021-02-11 14:50:54
问题 First, does the vscode editor area support the insertion of some lines, only for display purposes, and does not affect the properties of the editing area itself, such as the line number unchanged. I know that Gitlens can display the relevant information of the author after a certain line, now I want to insert these non-editable information into separate lines. Second, in the editor area where the breakpoint is marked during debugging (that is, to the left of the line number), can a new column

I would like to have a message sent in a certain channel that the bot is turning off or on

此生再无相见时 提交于 2021-02-11 14:39:44
问题 So I'm new to making bots and coding and stuff and this might be a newbie question but anyway, I don't have a hosting server for my bot so i was thinking that maybe when the bot turned off it would send a message in a channel But I have no clue how to do that or if its possible. I was able to get it to happen when the bot turns on but I don't know how to have it occur when the bot turns off. I don't even know where to start. What I have so far is when I type node . in the terminal the bot

How do I configure a terminal to read UTF-8 characters?

安稳与你 提交于 2021-02-11 14:26:32
问题 I am working on a project which accepts user input via the command line. I am using up-to-date Windows 10 and (after much running around in circles...) I am aware that it is notoriously bad when it comes to handling UTF-8 characters. Consequently, I looked to VS Code and the integrated terminal (PowerShell) to perform input into the program. Sadly, the terminal seemed unable to accept accented UTF-8 characters such as "ë". I then did more research and configured the settings.json for VS Code

Remote SSH in Visual Studio Code does not work

拜拜、爱过 提交于 2021-02-11 14:00:02
问题 I have used the Remote SSH extension by Microsoft in Visual Studio Code to connect from my Windows 10 machine to my Raspberry Pi 4. It worked fine until one day. After three times entering the correct password, it outputs "This process tried to write to a nonexistent pipe". I can still connect via the terminal and Putty. I am using the host's password to log in. I have tried to uninstall the extension, tried an earlier version and tested the extension on another Windows 10 computer without

How to open multiple split terminals for each npm script?

随声附和 提交于 2021-02-11 13:54:13
问题 I have like 5 npm scripts and each of them need their own terminal because they runned in watch mode and write something in console. Here is the scripts: "server-build-dev": "cd ts/backend && npx tsc -w && npm run server-lint", "server-run-dev": "pm2 flush && pm2 start --only server --env development && pm2 logs", "server-lint": "cd ts/backend && esw -w --ext .ts", "client-build-dev": "cd ts/configs && npx webpack --config client.webpack.dev.js" I prefer split terminals to see everything that

I tried to open my Laravel application which was developed 2yrs ago and when I register a user I see the following error [duplicate]

前提是你 提交于 2021-02-11 13:53:06
问题 This question already has answers here : Error “Trying to access array offset on value of type null” laravel 5.8.26 Php 7.4.2 (4 answers) Closed 7 months ago . Trying to access array offset on value of type null if ($previous['type'] === EmailLexer::S_BACKSLASH 回答1: The error states that the variable $previous, which you expect to be an array, is actually null. You can't use an array offset on a null. Given that you said it was developed 2 years ago, probably some library changed and has

I tried to open my Laravel application which was developed 2yrs ago and when I register a user I see the following error [duplicate]

廉价感情. 提交于 2021-02-11 13:51:21
问题 This question already has answers here : Error “Trying to access array offset on value of type null” laravel 5.8.26 Php 7.4.2 (4 answers) Closed 7 months ago . Trying to access array offset on value of type null if ($previous['type'] === EmailLexer::S_BACKSLASH 回答1: The error states that the variable $previous, which you expect to be an array, is actually null. You can't use an array offset on a null. Given that you said it was developed 2 years ago, probably some library changed and has

VSCode - XDebug connected to client but break points does not work

只愿长相守 提交于 2021-02-11 13:22:58
问题 I work on PHP application and I want to debug my website. I'm working on IDE VSCode on Windows 10. I use Docker to launch my website in WSL2. I have configured XDebug in my php-fpm:7.3 container. root@00376c075cd3:/var/www# php -version PHP 7.3.18 (cli) (built: May 15 2020 13:33:15) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.18, Copyright (c) 1998-2018 Zend Technologies with Xdebug v2.9.8, Copyright (c) 2002-2020, by Derick Rethans On VSCode, I have configured my launch