<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Visual Studio on Hi Work Notes</title><link>/en/visualstudio/</link><description>Recent content in Visual Studio on Hi Work Notes</description><generator>Hugo</generator><language>en-US</language><copyright>Hi Work Notes 2026</copyright><lastBuildDate>Tue, 10 Mar 2026 15:55:34 +0800</lastBuildDate><atom:link href="/en/visualstudio/index.xml" rel="self" type="application/rss+xml"/><item><title>About the EditorConfig File</title><link>/en/visualstudio/editorconfig/</link><pubDate>Tue, 10 Mar 2026 15:55:34 +0800</pubDate><guid>/en/visualstudio/editorconfig/</guid><description>&lt;p&gt;EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.&lt;/p&gt;
&lt;p&gt;The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable the editors to read the file format and adhere to the defined styles. EditorConfig files are easy to read and work well with version control systems.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://editorconfig.org"&gt;https://editorconfig.org&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Visual Studio 2019 and later support EditorConfig files, so you can use an EditorConfig file in Visual Studio to define and maintain code style settings.&lt;/p&gt;</description></item><item><title>Copyright</title><link>/en/visualstudio/copyright/</link><pubDate>Tue, 10 Mar 2026 15:55:34 +0800</pubDate><guid>/en/visualstudio/copyright/</guid><description>&lt;h2 id="copyright"&gt;Copyright&lt;/h2&gt;
&lt;p&gt;Generally the copyright notice for a project in the .NET Foundation is given as
&amp;ldquo;Copyright (c) .NET Foundation and Contributors. All Rights Reserved&amp;rdquo;.
The copyright notice should be placed in the LICENSE for the project so
the beginning of the LICENSE for an MIT Licensed project would be:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;The MIT License (MIT)
Copyright (c) .NET Foundation and Contributors
All Rights Reserved
Permission is hereby granted...
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And an Apache 2.0 Licensed project would begin&lt;/p&gt;</description></item><item><title>How to use Git version control gracefully</title><link>/en/visualstudio/git-with-visual-studio/</link><pubDate>Tue, 10 Mar 2026 15:55:34 +0800</pubDate><guid>/en/visualstudio/git-with-visual-studio/</guid><description>&lt;h2 id="introduction-to-git"&gt;Introduction to Git&lt;/h2&gt;
&lt;p&gt;Git is an open source distributed version control system for agile and efficient handling of any project, small or large.&lt;/p&gt;
&lt;h2 id="clone-repository"&gt;Clone repository&lt;/h2&gt;
&lt;p&gt;Clone the remote repository locally, make modifications locally, and commit to the remote repository.&lt;/p&gt;
&lt;h2 id="create-repository"&gt;Create repository&lt;/h2&gt;
&lt;p&gt;Create a repository locally and push the local repository to the remote repository. Regarding the use of naming conventions for code repositories, use the KebabCaseLower nomenclature.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Naming policy&lt;/th&gt;
&lt;th&gt;Original&lt;/th&gt;
&lt;th&gt;Converted&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;PascalCase&lt;/td&gt;
&lt;td&gt;HelloShop&lt;/td&gt;
&lt;td&gt;HelloShop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CamelCase&lt;/td&gt;
&lt;td&gt;HelloShop&lt;/td&gt;
&lt;td&gt;helloShop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SnakeCaseLower&lt;/td&gt;
&lt;td&gt;HelloShop&lt;/td&gt;
&lt;td&gt;hello_shop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SnakeCaseUpper&lt;/td&gt;
&lt;td&gt;HelloShop&lt;/td&gt;
&lt;td&gt;HELLO_SHOP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KebabCaseLower&lt;/td&gt;
&lt;td&gt;HelloShop&lt;/td&gt;
&lt;td&gt;hello-shop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KebabCaseUpper&lt;/td&gt;
&lt;td&gt;HelloShop&lt;/td&gt;
&lt;td&gt;HELLO-SHOP&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="local-warehouse-settings"&gt;Local warehouse settings&lt;/h2&gt;
&lt;p&gt;Git settings include global settings and repository settings, and multiple remote repositories can be set up.&lt;/p&gt;</description></item><item><title>Using .HTTP files in Visual Studio 2022</title><link>/en/visualstudio/use-http-files/</link><pubDate>Tue, 10 Mar 2026 15:55:34 +0800</pubDate><guid>/en/visualstudio/use-http-files/</guid><description>&lt;h2 id="comment"&gt;Comment&lt;/h2&gt;
&lt;p&gt;Lines starting with # or // are comments and are ignored when Visual Studio sends an HTTP request.&lt;/p&gt;
&lt;h2 id="variable"&gt;variable&lt;/h2&gt;
&lt;p&gt;Lines starting with @ define variables using the syntax @VariableName=Value.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-http" data-lang="http"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;@hostname=localhost
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;@port=44320
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;GET https://{{hostname}}:{{port}}/weatherforecast
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="multiple-requests"&gt;multiple requests&lt;/h2&gt;
&lt;p&gt;The request format is:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-http" data-lang="http"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;[&amp;lt;HTTP-verb&amp;gt;] &amp;lt;url&amp;gt; [&amp;lt;HTTP-version&amp;gt;]
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;[&amp;lt;request-headers&amp;gt;]
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;[&amp;lt;request-body&amp;gt;]
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-http" data-lang="http"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;GET https://localhost:7220/weatherforecast
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;###
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;GET https://localhost:7220/weatherforecast?date=2023-05-11&amp;amp;location=98006
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;###
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;GET&lt;/span&gt; &lt;span class="nn"&gt;https://localhost:7220/weatherforecast&lt;/span&gt; &lt;span class="kr"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;3&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="g"&gt;###
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="request-headers"&gt;Request headers&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-http" data-lang="http"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;GET https://localhost:7220/weatherforecast
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;Date: Wed, 27 Apr 2023 07:28:00 GMT
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;###
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;GET https://localhost:7220/weatherforecast
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;Cache-Control: max-age=604800
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;Age: 100
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;###
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="request-body"&gt;request body&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-http" data-lang="http"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;POST https://localhost:7220/weatherforecast
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;Content-Type: application/json
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt; &amp;#34;date&amp;#34;: &amp;#34;2023-05-11&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt; &amp;#34;location&amp;#34;: &amp;#34;98006&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="create-an-http-file-using-a-template"&gt;Create an HTTP file using a template&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Right-click the ASP.NET Core project&lt;/li&gt;
&lt;li&gt;Add &amp;gt; New Item&lt;/li&gt;
&lt;li&gt;ASP.NET Core&amp;gt;General&lt;/li&gt;
&lt;li&gt;Select HTTP File, then select Add&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="use-the-endpoint-explorer"&gt;Use the Endpoint Explorer&lt;/h2&gt;
&lt;p&gt;View &amp;gt; Other Windows &amp;gt; Endpoint Resource Management&lt;/p&gt;</description></item></channel></rss>