vscode-settings

terminal.integrated.env.windows for Integrated Terminal

坚强是说给别人听的谎言 提交于 2021-02-08 08:20:25
问题 I'm trying to set variable before start the Integrated Terminal User Setting: { "terminal.integrated.env.windows": { "foo": "bar" } } Then View > Integrated Terminal Windows PowerShell Copyright (C) 2016 Microsoft Corporation. All rights reserved. PS C:\bar> echo $foo PS C:\bar> It's seem not work, It's bug or I'm wrong? VSCode Version: 1.16.1 PS: Already seem Set global $PATH environment variable in VS Code 回答1: Finally, yume-chan answer by question in Ref: https://github.com/Microsoft

Is there a VS Code shortcut to move/select up/down to the next empty line?

自古美人都是妖i 提交于 2021-02-07 14:46:53
问题 I just transitioned from Sublime to VS Code and love it. Wondering if there are equivalent combos, or a way to set them, for jumping/selecting chunks of line, down/up to the next blank line. This is what these looked like for me in ST3: {"keys": ["ctrl+shift+["], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true}}, {"keys": ["ctrl+shift+]"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true}}, {"keys":

Is there a VS Code shortcut to move/select up/down to the next empty line?

本秂侑毒 提交于 2021-02-07 14:45:52
问题 I just transitioned from Sublime to VS Code and love it. Wondering if there are equivalent combos, or a way to set them, for jumping/selecting chunks of line, down/up to the next blank line. This is what these looked like for me in ST3: {"keys": ["ctrl+shift+["], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true}}, {"keys": ["ctrl+shift+]"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true}}, {"keys":

VSCode: how to highlight editor tabs that were modified since last git commit, show git status

无人久伴 提交于 2021-02-07 11:51:29
问题 In VSCODE, how can I highlight tabs that were modified compared to previous git commit? In order to show their git status. Note: This is not a duplicate of How can I edit VS Code settings so that the tabs of modified files are highlighted?, since that question relates to unsaved changes, and this question relates to saved changes that were modified compared to the recent git commit. 回答1: v1.53 has added this functionality, see Release notes: tab decorations. Two new settings allow you to

Unable find printf.c on Ubuntu 16.04

℡╲_俬逩灬. 提交于 2021-02-05 11:13:51
问题 I recently switched to the Ubuntu 16.04 . I am using vscode for as IDE on Ubuntu. I configure other languages, but I could not do it for C/C++ . I created c_cpp_properties.json, launch.json & tasks.json . When I started to compile the any given code, It gives an error when the fit functions like printf or malloc . The Error message: Unable to open 'printf.c': File not found (file:///build/glibc-Cl5G7W/glibc-2.23/stdio-common/printf.c). How can I fix the problem? launch.json { // Use

Unable find printf.c on Ubuntu 16.04

别来无恙 提交于 2021-02-05 11:13:18
问题 I recently switched to the Ubuntu 16.04 . I am using vscode for as IDE on Ubuntu. I configure other languages, but I could not do it for C/C++ . I created c_cpp_properties.json, launch.json & tasks.json . When I started to compile the any given code, It gives an error when the fit functions like printf or malloc . The Error message: Unable to open 'printf.c': File not found (file:///build/glibc-Cl5G7W/glibc-2.23/stdio-common/printf.c). How can I fix the problem? launch.json { // Use

Is there a way to turn off hover for certain functions in VSCode?

别来无恙 提交于 2021-02-05 09:45:33
问题 In VSCode, I have the hovers enabled that show me the docstrings of the functions (etc.) I use. I appreciate that functionality. However, some of the hovers get annoying with time. First and foremost, the one for print . I never need it, and it is huge. It is particularly annoying in Jupyter notebooks, where I use print quite often. Hence, my question: Is there a way to disable the hover for certain functions specifically? I have looked through the VSCode documentation but haven't found

How to pass comma-separated options to the g++ linker with VSCode?

喜夏-厌秋 提交于 2021-02-05 07:49:07
问题 I need to pass the arg -Wl,-Bstatic,--whole-archive to g++. "version": "2.0.0", "tasks": [ { "type": "shell", "label": "shell: g++.exe build active file", "command": "C:\\MinGW\\x86\\bin\\g++.exe", "args": [ "-g", "${file}", "-Wl,-Bstatic,--whole-archive", "-Xlinker", "-Map=${fileDirname}\\${fileBasenameNoExtension}.map", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe" ], "options": { "cwd": "C:\\MinGW\\x86\\bin" }, "problemMatcher": [ "$gcc" ], "group": "build" } ] } It gives me in

VS Code with WSL now opens the browser.sh file instead of launching the browser

孤街醉人 提交于 2021-02-05 06:32:26
问题 The problem : when running a React project (i.e. npm run start ) with WSL from the terminal in VS Code, the file "browser.sh" is opened in a new window. The browser is no longer launched. This is a new behavior with version 1.52. The release notes indicate that they now add the system variable "BROWSER" and use it to launch the browser. In my case it is set to /home/dan/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/bin/helpers/browser.sh The browser.sh file is a shell script

Task output encoding in VSCode

好久不见. 提交于 2021-02-04 21:01:33
问题 I'm learning BeautifullSoup with Visual Studio Code and when I run this script: import requests from bs4 import BeautifulSoup from fake_useragent import UserAgent ua = UserAgent() header = {'user-agent':ua.chrome} google_page = requests.get('https://www.google.com',headers=header) soup = BeautifulSoup(google_page.content,'lxml') # html.parser print(soup.prettify()) And I'm getting the following error: Traceback (most recent call last): File "c:\ ... \intro-to-soup-2.py", line 13, in print