visual-studio-code

Application Error message when browsing Azure deployed web app

瘦欲@ 提交于 2021-02-17 01:49:59
问题 I created a simple web app (serverless) and deployed the web app using Azure App Service VS Code extension. I chose Linus + Node LTS environment. I configured deployment source to a local Git repo (also tried remote GitHub repo) and deployed. The deployment shows successful message. But when I browse the site, it throws a message (after 3-4 mins) that there was an ":( Application error". The admin diagnostics link doesn't show any error. Any reason why this could be happening? Where can I

How can I go back to previous tab opened in VScode

为君一笑 提交于 2021-02-16 22:59:34
问题 Is there a shortcut to go back to previous tab opened (not previous position of cursor as ^- does). Could not find such action in docs. 回答1: Try the View: Open Previous Editor command. You can also view the editor history using the Open Previous Editor From History command, and then pick the target editor you wish to open 回答2: v1.42 introduces a bunch of new functionality - including the ability to cycle through recently used editors even when those editors are in different groups. See https:

How can I go back to previous tab opened in VScode

余生颓废 提交于 2021-02-16 22:59:22
问题 Is there a shortcut to go back to previous tab opened (not previous position of cursor as ^- does). Could not find such action in docs. 回答1: Try the View: Open Previous Editor command. You can also view the editor history using the Open Previous Editor From History command, and then pick the target editor you wish to open 回答2: v1.42 introduces a bunch of new functionality - including the ability to cycle through recently used editors even when those editors are in different groups. See https:

How to move to the next/previous variable reference in VS Code?

谁都会走 提交于 2021-02-16 20:24:33
问题 In Visual Studio, when working with C#, I can click on a variable, hold down CTRL + SHIFT and move between it's references using the arrow keys (up and down) inside the script that's currently open. How can I perform such an action in VS Code while working with TypeScript? 回答1: I wouldn't call them references since that terminology is usually used for other things in the editor, you can use any of the following: Scopeless editor.action.nextMatchFindAction Default F3 editor.action

Is there a way to add the Developer Powershell for VS 2019 as an integrated terminal in VSCode?

冷暖自知 提交于 2021-02-16 15:09:51
问题 I'm working on a project that requires me to compile C++ code using MSVC, but I am working mostly with VSCode. As such, I was wondering if there is a way for me to add the Developer Powershell as an integrated terminal, so that I can compile without needing a secondary terminal open. I thought of just opening VSCode from the Developer PS itself, but since this is mostly a temporary project it seemed like a lot of repetitive work. I tried using the Shell launcher extension for VSCode but it

Is there a way to add the Developer Powershell for VS 2019 as an integrated terminal in VSCode?

怎甘沉沦 提交于 2021-02-16 15:09:00
问题 I'm working on a project that requires me to compile C++ code using MSVC, but I am working mostly with VSCode. As such, I was wondering if there is a way for me to add the Developer Powershell as an integrated terminal, so that I can compile without needing a secondary terminal open. I thought of just opening VSCode from the Developer PS itself, but since this is mostly a temporary project it seemed like a lot of repetitive work. I tried using the Shell launcher extension for VSCode but it

Visual Studio Node: debug into Worker Threads (node 11)

℡╲_俬逩灬. 提交于 2021-02-16 04:33:36
问题 Can VS Code's Javascript debugger be made to debug node 11's new "Worker Threads"? Worker threads are modelled after web workers with a small number of extra capabilities on top and are available from the new worker_threads package (see https://nodejs.org/api/worker_threads.html). Other than with node's sub processes, one can share memory with worker threads in the form of SharedArrayBuffers. My VS Code launch configuration looks like that: { "type": "node", "request": "launch", "name":

Visual Studio Node: debug into Worker Threads (node 11)

眉间皱痕 提交于 2021-02-16 04:28:05
问题 Can VS Code's Javascript debugger be made to debug node 11's new "Worker Threads"? Worker threads are modelled after web workers with a small number of extra capabilities on top and are available from the new worker_threads package (see https://nodejs.org/api/worker_threads.html). Other than with node's sub processes, one can share memory with worker threads in the form of SharedArrayBuffers. My VS Code launch configuration looks like that: { "type": "node", "request": "launch", "name":

Problem with Visual Studio Code using “react-jsx” as jsx value with create-react-app

不羁岁月 提交于 2021-02-15 12:07:13
问题 I'm struggling with following "error" in VSCode : Argument for '--jsx' option must be: 'preserve', 'react-native', 'react' Hence, react-scripts (create-react-app) automatically sets the jsx key to react-jsx value, when react value seems to work. Actually, the code works perfectly and displays the page I want, but the IDE is underlining kinda everything as errors, saying : Cannot use JSX unless the '--jsx' flag is provided. Here is my tsconfig.json : { "compilerOptions": { "target": "es5",

Problem with Visual Studio Code using “react-jsx” as jsx value with create-react-app

时光毁灭记忆、已成空白 提交于 2021-02-15 12:03:21
问题 I'm struggling with following "error" in VSCode : Argument for '--jsx' option must be: 'preserve', 'react-native', 'react' Hence, react-scripts (create-react-app) automatically sets the jsx key to react-jsx value, when react value seems to work. Actually, the code works perfectly and displays the page I want, but the IDE is underlining kinda everything as errors, saying : Cannot use JSX unless the '--jsx' flag is provided. Here is my tsconfig.json : { "compilerOptions": { "target": "es5",