1 Star 0 Fork 0

彭辅军/VsVim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CodingGuidelines.txt 1.70 KB
一键复制 编辑 原始数据 按行查看 历史
F#
- Terminology
- Last is inclusive
- End is not inclusive
- Util classes should contain Create methods to create
- Revisit: Util classes should have Get for conversions
- Should be Of for type conversions in util classes
EditSnapshotSpan.OfSpan
EditSnapshotSpan.OfBlock
- Editor APIs
- APIs taking a count should return an option or explicitly guard against count being too large. Users
too often control this number
- APIs taking a line number should consider returning an option. Line numbers are less likely to be controlled
by the user
- Don't use ; for multi-line object initializers
- Add a space between ...
- Values and arithmic operators and comparisions
- Names and Values in record initializer expressions
- Names and their types (foo : bar)
- Keywords and open parens
with get (
if (
elif (
- Discriminated Union Names and open parens
- {} the values in a record initializer
- Don't add a space between
- Parens in everything but after keywords and discriminated union values
x.Foo()
- After the get in a mutable property defenition
with get() =
- To Deteremine:
- Should functions returning an option be prefixed with Try? Example KeyNotationUtil
- Naming patterns
- Information needed to iniate an action: XXXData
- Information
C#
- Member variables prefixed with _
- Buffer creation methods should be Create. Not CreateBuffer
Naming
- Fields of specific types
- ITextView -> _textView
- ITextBuffer -> _textBuffer
- IVimBuffer -> _buffer
- Unit Tests for handling a key combination
- Handle_KeyCombo_
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/peng_fu_jun/VsVim.git
[email protected]:peng_fu_jun/VsVim.git
peng_fu_jun
VsVim
VsVim
VsVim-2.1.1

搜索帮助