visual-studio-code

Visual Studio Code - filename color

倖福魔咒の 提交于 2021-02-07 06:55:24
问题 For some reason, after the update, some filenames appear yellow. How do I disable it? 回答1: settings.json Ctrl + , "git.decorations.enabled": false https://code.visualstudio.com/updates/v1_18#_git-status-in-file-explorer 回答2: To generally disable the colors in the explorer, one can use the setting: User/Features/Explorer/Decorations/Colors: false 回答3: As part of the update, Visual Studio Code integrates the colour highlighting of Git version control into the main file explorer. That’s why you

Using Visual Studio Code and using defined symbols

落花浮王杯 提交于 2021-02-07 06:16:06
问题 EDIT: I have edited the whole question, since this is not only for Unity3D, but at all .sln projects. I have a installation of Visual Studio Code(Not Visual Studio, but this:https://code.visualstudio.com/) on my Macbook at work. VSCode is otherwise working just fine with normal and Unity3D projects. I get Intellisense on all classes, including Unity3D specific ones, like GameObject. So I think my installation and startup sequence is correct. Only problem I have, is that VSCode does not seem

Disabling a specific compiler warning in VS Code

浪尽此生 提交于 2021-02-07 04:55:16
问题 I want to know how to suppress a specific compiler warning within VS Code for the entire project. I have seen this queston: Is it possible to disable specific compiler warnings? but it is for Visual studio, not Visual Studio Code. Here are the answers that where recommended in the question linked above: 1. Solution Explorer > View > Properties > Build > Suppress Warnings and 2. #pragma warning disable warning-list For #1: I can't find the Solution Explorer anywhere within VS Code. For #2 This

how to add a new c# file to a project using dotnet-cli

可紊 提交于 2021-02-06 14:27:19
问题 I'm learning how to use dotnet-cli with VSCode. I've seen many commands on how to create solution, projects, add reference to projects... but I don't see anywhere in the documentation how to add a file. If remember, in RubyOnRails it was possible to add file from the command line. Thanks for helping 回答1: Not that I know of (I was also researching that topic) but I found helpful extension for VS code called C# Extensions by jchannon, which helps you create classes and interfaces with correct

how to add a new c# file to a project using dotnet-cli

心不动则不痛 提交于 2021-02-06 14:24:20
问题 I'm learning how to use dotnet-cli with VSCode. I've seen many commands on how to create solution, projects, add reference to projects... but I don't see anywhere in the documentation how to add a file. If remember, in RubyOnRails it was possible to add file from the command line. Thanks for helping 回答1: Not that I know of (I was also researching that topic) but I found helpful extension for VS code called C# Extensions by jchannon, which helps you create classes and interfaces with correct

How to develop (run and debug) modules in Odoo v11 on Visual Studio Code in Ubuntu?

99封情书 提交于 2021-02-06 13:53:24
问题 Is it possible to run and debug Odoo on Visual Studio Code? If yes please share me the configuration. Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. It is free and open-source, although the official download is under a proprietary license. 回答1: I know I'm a bit late but I have managed to work with Odoo 11.

How to develop (run and debug) modules in Odoo v11 on Visual Studio Code in Ubuntu?

大憨熊 提交于 2021-02-06 13:49:16
问题 Is it possible to run and debug Odoo on Visual Studio Code? If yes please share me the configuration. Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. It is free and open-source, although the official download is under a proprietary license. 回答1: I know I'm a bit late but I have managed to work with Odoo 11.

Open CMD in the Visual Studio Code terminal

↘锁芯ラ 提交于 2021-02-06 10:32:06
问题 Whenever I open the terminal in Visual Studio Code, I get a bash shell. I want to add CMD as a second shell. To do that, I went through the VS Code documentation and found this command: CTRL + SHIFT + ` But it only opens a second bash shell. Is there a shortcut for opening CMD in the integrated terminal, rather than opening it in an external console? 回答1: If you want to always open cmd, you can use the settings to configure that. From the docs: Correctly configuring your shell on Windows is a

VS Code Code Runner doesn't work with virtualenvs

丶灬走出姿态 提交于 2021-02-05 18:48:07
问题 I can't get Code Runner extension to work with virtualenvs. Whenever I try to run code that imports a library that is installed only in the virtualenv and not in the global Python installation I get an import error. Running the exact same code in terminal works. I am on Windows 10 and I have Python 3.6.5 installed. The precise error I am getting is: ModuleNotFoundError: No module named 'bs4' 回答1: I also faced same issue. solution which i found best is just add this line to your user or

jQuery intellisense in VS Code

こ雲淡風輕ζ 提交于 2021-02-05 15:00:57
问题 I have tried this: JQuery intellisense in Visual Studio Code and this: http://shrekshao.github.io/2016/06/20/vscode-01/ But it does nothing, VS Code just won't add jquery intellisense, I've been trying to solve this for hours but it just won't work 回答1: Most of the blog postings are now outdated, as we finally have automatic type acquisition with version 1.8+ - you no longer need to install the typings yourself. I recommend reading the official documentation, its always up to date: https:/