vscode-settings

Task output encoding in VSCode

£可爱£侵袭症+ 提交于 2021-02-04 21:01:32
问题 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

Using a shell command as VSCode task variable value

∥☆過路亽.° 提交于 2021-02-04 08:34:09
问题 I am trying to define a VSCode task in tasks.json that would adapt to the specific architecture where VSCode runs. To do this, I want to get the architecture as uname --m ( e.g. "aarch64" or "amd64"). My goal is to interpolate the output of uname into an environment variable like so "version": "2.0.0", "tasks": [ { "label": "build", "type": "shell", "command": "cmake", "args": [ "-DMYLIB_INCLUDE_DIR=$MYLIB/include", "-DMYLIB_LIBRARY=$MYLIB/lib" ], "options": { "env": { "MYLIB": "$

How to change Github local repo .git/config credentials to circumvent 403?

橙三吉。 提交于 2021-02-04 08:14:10
问题 I'm trying to push to my remote Github repository from my work PC that has other credentials set up and this is what I get: remote: Permission to *** denied to ***. fatal: unable to access 'https://github.com/***': The requested URL returned error: 403 I tried changing .gitconfig but it didn't help. I suspect VS code is somehow remembering the work credentials but I'm unable to find where is it. 回答1: Found an answer here. At the end, it wasn't about resetting VS code credentials. Find .git

Syntax highlighting suddenly different [duplicate]

喜夏-厌秋 提交于 2021-02-02 09:39:43
问题 This question already has an answer here : How use prev syntax highlighting for vscode (1 answer) Closed 11 months ago . I noticed recently that my vscode started acting a bit funny. Highlighting/changing colors on certain variables seemingly out of nowhere that are really throwing me off (lot of changing colors on return variables, bolding objects etc. A friend of mine is using the same color theme and we compared to make they were different and sure enough, mine has a bunch of whacky stuff

Syntax highlighting suddenly different [duplicate]

喜欢而已 提交于 2021-02-02 09:37:33
问题 This question already has an answer here : How use prev syntax highlighting for vscode (1 answer) Closed 11 months ago . I noticed recently that my vscode started acting a bit funny. Highlighting/changing colors on certain variables seemingly out of nowhere that are really throwing me off (lot of changing colors on return variables, bolding objects etc. A friend of mine is using the same color theme and we compared to make they were different and sure enough, mine has a bunch of whacky stuff

Syntax highlighting suddenly different [duplicate]

懵懂的女人 提交于 2021-02-02 09:36:42
问题 This question already has an answer here : How use prev syntax highlighting for vscode (1 answer) Closed 11 months ago . I noticed recently that my vscode started acting a bit funny. Highlighting/changing colors on certain variables seemingly out of nowhere that are really throwing me off (lot of changing colors on return variables, bolding objects etc. A friend of mine is using the same color theme and we compared to make they were different and sure enough, mine has a bunch of whacky stuff

Vscode terminal doesnt display folder and branch

前提是你 提交于 2021-01-29 10:52:29
问题 Following is how I see the termial: Vscode for some reason does not display the folder name and git branch by default. I have vscode on another system with no custom settings made and it displays them plus the colours as well. vscode settings: { "workbench.colorTheme": "Monokai Dimmed", "workbench.iconTheme": "material-icon-theme", "terminal.integrated.copyOnSelection": true, "terminal.integrated.cursorBlinking": true, } 回答1: The folder name and branch in the terminal prompt come from the

How to make VSCode's python debugger skip stepping into some modules when debugging

℡╲_俬逩灬. 提交于 2021-01-29 06:26:46
问题 In vscode's python (ms-python) extension, is there a way to make the debugger (debugpy) not to step-into functions defined in specific modules. I have found justMyCode but it will skip entering into external modules only (like members of stdlib) while I need to skip my own modules sometimes. I saw some debug adaptors for some other languages implement skipFiles property. Is there anything similar for python? 回答1: Going thru debugpy code I found this undocumented feature which works like a

Show current branch on terminal

风流意气都作罢 提交于 2021-01-29 04:53:54
问题 Is there any way to show in Terminal of VS Code to show in brackets current branch ? I saw it somewhere but not sure how it can be done. By some extension or whatever.. C:/myUser/project> git status I would like to see it something like: C:/myUser/project>(master) git status 回答1: For Linux Terminal You can modify the PS1 variable. PS1 is a Bash Environment Variable that represents the primary prompt string which is displayed when the shell is ready. You can achieve your result by modifying

Show current branch on terminal

大憨熊 提交于 2021-01-29 04:52:01
问题 Is there any way to show in Terminal of VS Code to show in brackets current branch ? I saw it somewhere but not sure how it can be done. By some extension or whatever.. C:/myUser/project> git status I would like to see it something like: C:/myUser/project>(master) git status 回答1: For Linux Terminal You can modify the PS1 variable. PS1 is a Bash Environment Variable that represents the primary prompt string which is displayed when the shell is ready. You can achieve your result by modifying