Learn English Grammar Online
English Grammar 101 – Online Grammar Lessons
Month: December 2020
褲襪心得

Rider

Rider改字型




NPM : Semantic Versioning
C# Unit Test 學習
ESLint: Expected linebreaks to be ‘LF’ but found ‘CRLF’.(linebreak-style)
eslint報錯解決方式:
ESLint: Expected linebreaks to be ‘LF’ but found ‘CRLF’.(linebreak-style)
編輯器如果這邊是CRLF就會每一行都有紅波浪

開始研究怎麼解決


在IDE可以設定Code Style,注意有一個Enable EditorConfig support,點了它會蓋掉IDE的設定(如果有檔案的話)
EditorConfig是什麼咚咚?
EditorConfig官網
簡單來說就是『叫編輯器聽我的話!』這樣的檔案
另外研究了這篇
Git for Windows: Line Endings
懶人包:增加.gitattributes
這個檔案就好
參考文章:
Prettier – End of Line
enforce consistent linebreak style (linebreak-style)
Disallow mixing CRLF and LF linebreaks (linebreak-style)
Why should I use core.autocrlf=true in Git?
Windows下前端开发使用prettier保证以LF结尾
Git – gitattributes Documentation
另一個eslint
ESLint: Delete ␍
(prettier/prettier)
參考這裡:
Using this rule with version control systems

Rider keymap
Ctrl + Tab
切換檔案(可以搭配↑↓鍵)
網頁開發學習網站
http://devlinks.pinkjelly.org/
定期更新,收集一些開發軟體的教學網站。
每天吸下補一下


An object is an instance of a class.
One class per file.


相關的class要放在一樣的namespace
namespace可以用folder來分類
對namespace按Alt + Enter也可以改namespace名
Console.WriteLine(“可以直接用是因為它是static”)
它會是static是因為只有一個console
field宣告
