Vscode is a Microsoft-developed editor that adds Python plug-ins to run Python scripts directly, or add Jupyter plug-ins with "#%%" magic to run in Python kernel after starting line annotations.If the Python,ipython is already installed, it is recommended to use the Anaconda installation package.After installing the Python support plugin, click the leftmost debug key after the script opens, and the Green Start button will enter debug mode.There are va
For CentOS, here are the following:
sudo rpm--import https://packages.microsoft.com/keys/microsoft.asc
sudo sh-c ' echo-e ' [code]\nname=visual Studio code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\ Nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc ">/etc/yum.repos.d/ Vscode.repo '
Then install it with the Yum command
Yum Check-update
sudo yum install code
When you're d
Pylint is a Vscode python plugin that can help with code specifications and aesthetics.But some of the errors you do not want to see, you can choose to ignore the sex.
For example, in Re.compile (), you can add a parameter re.S that . matches any character. And Pylint will keep the error. This method does not exist, resulting in a failure to run. This problem does not occur in Pycharm.
To customize the Ignore error, proceed as follows:
S
Pain point:React Library The recent growth trend is obvious, many friends are choosing to learn, many companies are also choosing to use the react stack.
However, when using the React library to write code, there is a very distressing problem, that is, the label in the JSX syntax can not be automatically complete (vscode)
Then we often think of downloading the corresponding plug-in to solve this problem, we can try a number of plugins, or not
Modifying the Tasks.json configuration fileLocate the Tasks.json configuration file under the. Vscode folder and drag it into Visual Studio Code to modify it.You can also press CTRL + Shift + p to enter: task, select Configure Task Runner.To modify a configuration file:
The command corresponding "echo" is modified to "Python".
The ["Helloworld"] corresponding to args is modified to ["${file}"].
Save the changes (Ctrl + s).
First navigate to D:\Program Files\Microsoft VS Code\resources\app\extensions, change the path to its own, open the Python and LUA directories, and modify the Language-configurat Ion.json files. python
Python defaults have been matched, but not well matched, only support #region, if there is a space between # and region (# Region) is not, the folding changed to the following is good:
"Folding": {
"Offside": true,
"markers": {
"start": "^\\s*#\\s*region\\b",
Vscode with g++ compilation and debugging
compiling
Debug
Programming with Vscode is not as convenient as vs. Some things need to be configured. compiling
Compile the configuration:Tasks – Run Tasks – Configure task –othersGenerate the Tasks.json file:
{
//See https://go.microsoft.com/fwlink/? linkid=733558
/For the documentation about the Tasks.json format
"version": "2.0.0",
"Tasks": [
first, A. NET core learning site was found:HTTPS://DOCS.MICROSOFT.COM/ZH-CN/ASPNET/CORE/TUTORIALS/WEB-API-VSC 1. Create and run a. NET Core 2.0 Web projectwill automatically generate the following itemsAdded in the Run configuration. NET core Lanuch (Web) configuration, modify the contents of the programRun the project2. Create WebapiSame as Web configuration run after startupOther Notes:Both 1.web and WEBAPI are enabled by default at 5000 ports. Webapi stops the site after it starts(ii)
Vscode adding browser debugging and JS debugging methods1, directly press F5 can be debugged method or click the Run button (you can directly run the HTML file or JS file)The configuration in the Launch.json file is as follows:{ "version": "0.2.0", "configurations": [{ "name": "Google Browse Browser ",//Run HTML file, open with Google Chrome " type ":" Chrome ", NBSP ; "Request": "Launch", "url": "${file}", " Sourcemaps ": tr
When editing the Vue file with Vscode, it is easy to find that the formatting code does not take effect between Files--Preferences---> SettingsSearch for vetur.format.defaultFormatter.html (if you have already installed the "Vetur" plugin)You can see that the value is NoneChange None to js-beautify-html.Vscode the HTML part of the Vue file format invalidation problem resolution
casing, for example on ${env:Path} Windows.Below is an example of a custom task configuration this passes the current opened file to the TypeScript compiler.{ "taskName": "TypeScript compile", "type": "shell", "command": "tsc ${file}", "problemMatcher": [ "$tsc" ]}Partial translation: (from the Internet)${workspaceroot} The absolute path of the folder currently open + the name of the folder${workspacerootfoldername} The name of the folder that is currently open${file} currently open the f
Microsoft's Vscode really powerful, electron frame written, with JS writing desktop applications, have the ability to analyze someone else's source code, anyway, I can not see, too cow brokeAfter a follow-up with the new I found something strange in the component (VUE) inside the HTML code can not be formatted, found a solution on the internet, but this year my friend asked me when I forgot, in the second record, also shareFirst open Vscode's "file pr
tool:CD $HOME/go/src/hello Go BuildThe command above would build an executable named in the hello directory alongside your source code. Execute it to see the greeting:./helloHello, worldIf you see the ' Hello, world ' message then your Go installation is working.You can run to go install install the binary into your workspace's bin directory or to go clean remove it.Before rushing off to write go code for read the How to write go Code document, which describes some essential concepts about usin
1. Install Xcode2, the terminal executes Xcode-select--install, installs the Command line development tool3. Install the Vscode and add the Go plugin4. Edit any. go file and follow the prompts to install the Go development component5, because of the domestic GW wall relationship, installation must fail, according to the error message will be golang.org/x/??? and other source code from GitHub clone to the Go directory in the SRC path corresponding to t
1. Installing VUE_CLIIf NPM is installed, enter NPM install-g vue-clidirectly on the command line, installed in the Global components directoryWhen you're done, you can test the command2. Import ProjectOpen vscode-------> File---------> Open folder---------> select project folder--------> OK;Then click on inherit terminal in view or use "ctrl+~" to bring up the terminalEnter a command from the terminal into the program directory, enter the NPM install
VS code-related plugins:Chinese (Simplified) Language Pack for Visual Studio Codedebugger for Chromeeslintvetur one install: Install vs code plugin Debugger for CHR ome two configuration: Config index.jscachebusting changed from true to FalseCachebusting:true,Cachebusting:false,devtool changed from Cheap-module-eval-source-map to Source-mapDevtool: ' Cheap-module-eval-source-map ',Devtool: ' Source-map ', three configuration: Launch.json file configuration{"Version": "0.2.0","Configurations": [{
What database is wood (the system comes with not counting)The plugin installs itselfPress F1, lose commandConnect to enter a name, create it emptyUser nameNext time you don't have to lose.Can not fillThe connection was successful.Create a database, create a table and so on, there are basically, not a demonstration, try it yourselfExecute shortcut key is Ctrl+shift+eLook at the graph, the database is out.---------------------------------------------------------------------Expand: View is displaye
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.