Objective
In fact, the environment is not difficult to build, but encountered some problems, mainly some site resources can not access (such as: golang.org),Cause some packages can not be installed, will eventually lead to environmental failure, with this tutorial a few steps, we will be able to quickly build the Golang development environment.
Development environment:
First, installation
Here I need to install some tools:
1.Visual
...-------------------A command is running to initially populate your The local package cache, to improve restore speed and enable offline access. This command would take the up to a minute to complete and would only happen once.Decompressing 100% 4614 msExpanding 100% 6000 msGetting ready ...Content Generation time:428.5828 msThe template "ASP. NET Core Web App" created successfully.D:\chucklu\git\github\chucklu\samplewebapp>dotnet RestoreRestoring Packages for D:\ChuckLu\Git\GitHub\ChuckLu\Sa
The plug-in installation is simple, Google has it, and confirm that you have installed the ANKHSVN plugin in VS, so congratulations, you can use SVN's powerful code management capabilities in VS. First open visual Studio, click File (Files) you will see the Subversion option, click Open from Subversion ... URL, enter the http://server ip/repository/repos1 and the
.
Then the download is complete, your computer modified the relevant configuration to upload again. Is it more convenient?
Other instructions, if the input gist ID wrong, read the situation, probably need to reset settings, press F1, enter sync, here are reset options. Try it. Reset Sync gist configuration information, etc.
There are other features such as automatic upload download and so on, not very often, we can see the official document, the basic use of this is the case, I wrote if there
,VSSVER.SCC,Project name. CSPROJ.VSPSCCAfter these four types of files, open the project still reported not deleted clean, reported the following error:(x) The solution appears to be under source control, but cannot find its binding information. Save the mssccprj of the solution's source control settings. The SCC file or other item may have been deleted. Because these missing information cannot be automatically recovered, items that are missing bindings will be treated as not under source
Click Visual Studio and you will find a code snippet menu:
Click it and you will find that it is the manager of common code snippets (Tab shortcuts:
Open the above folder path:
Experience or intuition shows that to customize code snippets, you only need to copy the file,
garden, I found someone recommended a courierstd font from Adobe, an enhanced version of courier new font, which was attached to almost all Adobe software. Well, I installed Adobe Acrobat Reader 7.0, which contains the courierstd font.
I used this font for the CourierStd-Bold.otf file, for the same reason, I must use a bold character, otherwise the result is displayed for the same reason as Courier New. Finally, after several modifications, I made a new vscode. TTF file with English character
Sun Guangdong 2015.12.31
Official shortcut key Encyclopedia: https://code.visualstudio.com/docs/customization/keybindings
Visual Studio Code is a great editor that starts very quickly and can be used instead of other text file editing tools. It can also be used for development, support for a variety of languages, lightweight fully configurable versus other Ides
not matched by the preceding rule reg:/.*/,//compile without producing Release:false } ] }}); Open cmd to navigate to the directory and execute the commandFIS Release--md5--dest. /output Project is output to: In the/output directoryURL address automatically changed, their own index.js and Index.css MD5 code has been automatically added good, third-party class library and not add MD5 code
Write a long code, but sometimes want to go back to look for the previous code, in addition to using the go To Definition function. Of course, the most convenient is to first add the current code bookmark. Then scroll to see the other code, and only click on the bookmark to return to the location of each bookmark.So ho
dog */router.post ('/dogs/', function (req, res, next) {Dogs.push (req.body) Res.json ({"STATUS": "200 OK "}); * Delete Delete the entire dog collection */router.delete ('/dogs/', function (req, res, next) {dogs = []; Res.json ({"STATUS": "$ OK"}); * GET a specific dog */router.get ('/dogs/:id ', function (req, res, next) {var i = 0; var dog = null; for (i = 0; I! = Dogs.length; i++) {if (dogs[i].dog_id = = req.params.id) {dog = Dogs[i]; Break }} dog!== null? Res.json (dog): Res.json
the resource address for which the post was just successful.3. PUT RequestPUT ResponsePut is an update operation. According to the specification, when the service update operation succeeds, it tells the client that the call is successful by the response code 204, and does not respond to the body by default.4. DELETE RequestDELETE ResponseDelete is the deletion operation. According to the specification, the response
This is a very useful function, the default settings are not very obvious, after setting up the following:The specific settings are:1. Menu: Tools-"Options-" environment-"fonts and colors2. Select "Highlighted references" in the "Show Items:" list box on the right3. On the right side of the list box, you can set the item foreground color and the item background color4. as follows:There is also a plugin for similar functionality: Selecthighlight ... The name is similar to this, the plug-in is con
1. Startcnpm:https://npm.taobao.org/2. Enterprise Network HTTP Proxy internetUsually office in a large Enterprise network (10.*.*.*), using HTTP proxy Internet, found that NPM command can not be executed.The solution is as follows:1. Install and set up the proxifier,https://www. proxifier. comProxifier effectively solves the embarrassing tragedy that Node.exe does not look for proxies set in the browser as the default proxy to perform.2. Install shadowsocks, buy a VPS, install a service side, en
This article mainly introduces the Visual Studio Code debugging PHP method (graphic detailed), with a certain reference value, interested can understand
Brief introduction
PHP is a dynamic language without a debugger, it is troublesome to get out of the wrong line. Vscode can be said to be the gospel of programmers, starting fast, plugins more and more, cross-pl
Visual Studio uses "find and replace" to delete pure comments and blank lines of all // methods in the source code
Note: XML annotations including //
Step 1/2 (Delete comment): Use the CTRL + H quick replacement function to find the following content:
^ [\ T] * // [^ \ n] * \ n
If the content to be replaced is blank (nothing is written), you can set the sear
When debugging PHP in VSC, if there are too many elements in the array, only the first 30 or so elements can be viewed.
If you need to see more elements, you can configure the Xdebugsettings
Modify the. vscode/launch.json file in the project:
Add the following:
"xdebugSettings": {
"max_children": 128,
"max_data": 512,
"max_depth": 3
}
Such as:
Reference: https://github.com/felixfbecker/vscode-php-debug/issues/166
View all elements of a PHP array
Plug-in installation is very simple. Google has the plug-in on it and you have installed the ankhsvn plug-in vs. Congratulations, you can use the powerful Svn in.CodeManagement function. Open Visual Studio, Click file, and you will see more subversion options. Click Open from subversion... Enter http: // server IP/Repository/repos1 in the URL, and then enter the user name and password for HTTP authenticatio
, and Vscode will automatically configure select Yes and restore.
You can now run or debug a C # project in Vscode, and Program.cs is the source file for C # after the new project. Project Run command:dotnet Run
If you need to debug to open the Debug window, set breakpoints to debugnext semester will inevitably and often deal with C #, although the basic is in visual Studio 2017 to run C #, but before downl
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.