How do you determine which formatter is being used for VS Code?

Starting with the 1.33 release (March 2019), attempting to format a file for which there are multiple formatters registered results in a popup like this: Note that the notification is “silent” if formatting happened implicitly via “format on save” or “format on paste”, meaning that you need to click the bell in the lower right … Read more

Is there a way to flatten or merge single-folder folders in vs code explorer?

It looks like it is in the iteration plan for June, 2019. See Iteration plan for June, 2019: release in July, 2019 and issue: merging single child directories. Update: making it into v1.41 to be released in December, 2019. See https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_41.md#compact-folders-in-explorer Compact folders in Explorer In the File Explorer, we now render single child folders … Read more

vscode import error for python module

I tried to add this in my launch.json, then it works! “env”: {“PYTHONPATH”: “${workspaceRoot}”} below is my launch.json “name”: “Python: Current File (Integrated Terminal)”, “type”: “python”, “request”: “launch”, “program”: “${file}”, “cwd”: “${workspaceRoot}”, “env”: {“PYTHONPATH”: “${workspaceRoot}”}, “console”: “integratedTerminal” wish it can help u! 🙂

How do I change color of comments in visual studio code?

From 1.15 (July 2017) you can change it from settings.json Ctrl+, “editor.tokenColorCustomizations”: { “comments”: “#d4922f” }, From 1.20 (January 2018) you can also do it for each theme separately: “editor.tokenColorCustomizations”: { “[Atom One Dark]”: { “comments”: “#d4922f” } }, Or now you can specify settings for multiple themes at once as “[Atom One Dark][Tomorrow Night … Read more

VSCode: enable or disable editor tabs modified since last git commit, show git status with modified tabs colors

v1.53 has added this functionality, see Release notes: tab decorations. Two new settings allow you to configure whether editor tabs show decorations, such as git status or diagnostics. Use workbench.editor.decorations.colors to decorate tabs with colors, like red/green for files with errors and warnings, and use workbench.editor.decorations.badges to decorate tabs with badges, like M for git … Read more