visual-studio-code

How do I build and run C files that use math.h functions in VSCode?

删除回忆录丶 提交于 2020-12-15 07:19:05
问题 As mentioned here: Undefined reference to pow( ) in C, despite including math.h, I can build C files that use math.h functions in Linux Ubuntu only in the terminal, by putting -lm at the end of gcc -o namefile namefile.c . But I want to build and run a C code that uses math.h in VSCode specifically. How do I do that? 回答1: You can do the same in VS Code using a custom task configuration for compiling your .c file. Let's say we have this test.c file with math.h. #include <math.h> #include

How to update VS Code on Windows?

扶醉桌前 提交于 2020-12-15 07:06:55
问题 I have VS Code version 1.37.1 and I want to update to the current available version 1.43. My OS is Windows 10. How can I update the current version to the latest?. Like in Eclipse, check for updates is not updating the installation, rather it gives me a zip. 回答1: Normally you don't need to do anything . The default configuration auto-updates and tells you it needs a restart. If you experience different behaviour then either someone has interfered with settings in VS Code or the platform (Win

How to update VS Code on Windows?

匆匆过客 提交于 2020-12-15 07:05:30
问题 I have VS Code version 1.37.1 and I want to update to the current available version 1.43. My OS is Windows 10. How can I update the current version to the latest?. Like in Eclipse, check for updates is not updating the installation, rather it gives me a zip. 回答1: Normally you don't need to do anything . The default configuration auto-updates and tells you it needs a restart. If you experience different behaviour then either someone has interfered with settings in VS Code or the platform (Win

How to update VS Code on Windows?

只谈情不闲聊 提交于 2020-12-15 07:05:13
问题 I have VS Code version 1.37.1 and I want to update to the current available version 1.43. My OS is Windows 10. How can I update the current version to the latest?. Like in Eclipse, check for updates is not updating the installation, rather it gives me a zip. 回答1: Normally you don't need to do anything . The default configuration auto-updates and tells you it needs a restart. If you experience different behaviour then either someone has interfered with settings in VS Code or the platform (Win

How to execute async functions in VSCode debugger? [duplicate]

夙愿已清 提交于 2020-12-15 06:50:16
问题 This question already has answers here : How to debug async/await in visual studio code? (5 answers) Closed 19 days ago . If I drop into the VSCode debugger in some javascript code and call an asynchronous function with await it just returns a promise. How can I resolve the promise within the debugger so I can see what the result is? For example, if I define a function like so: const doAsyncThing = async () => { return new Promise((resolve) => { setTimeout(() => { resolve(5) }, 1000) }) }

How to call async functions from VSCode debugger?

梦想与她 提交于 2020-12-15 04:58:45
问题 If I drop into the VSCode debugger in some javascript code and call an asynchronous function with await it just returns a promise. How can I resolve the promise within the debugger so I can see what the result is? For example, if I define a function like so: const doAsyncThing = async () => { return new Promise((resolve) => { setTimeout(() => { resolve(5) }, 1000) }) } (async function() { const result = await doAsyncThing() console.log(`result is ${result}`) debugger })() Then this happens

How to call async functions from VSCode debugger?

家住魔仙堡 提交于 2020-12-15 04:58:28
问题 If I drop into the VSCode debugger in some javascript code and call an asynchronous function with await it just returns a promise. How can I resolve the promise within the debugger so I can see what the result is? For example, if I define a function like so: const doAsyncThing = async () => { return new Promise((resolve) => { setTimeout(() => { resolve(5) }, 1000) }) } (async function() { const result = await doAsyncThing() console.log(`result is ${result}`) debugger })() Then this happens

Saving '*.php/*.vue': Running 'PHP Intelephense/Vetur' Formatter

*爱你&永不变心* 提交于 2020-12-15 04:14:29
问题 I am having a bit problem on my VSCode. Everytime I save something, it just keeps loading. Screenshot I am not sure why. Everything was fine last week ago. And I can't even type anything on my terminal. I have this extensions installed. List 1 List 2 回答1: I had the same issue since about a week. I notice your PHP Intelephense extension is also on v1.5.4. I changed the extension to an older version (1.5.3), this solved the issue for me. I created an issue on the github page of the PHP

Key mappings in a Visual Studio Code git-bash terminal

微笑、不失礼 提交于 2020-12-15 01:52:50
问题 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:48:50
问题 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