简体   繁体   English

如何在 F# 中使用代码片段

[英]How can I use code snippets in F#

In C#, I can leverage code snippets as shortcuts to produce plumbing code quickly.在 C# 中,我可以利用代码片段作为快捷方式来快速生成管道代码。 Is this supported in F#?这在 F# 中受支持吗?

For example, if I want to implement property getters and setters, can I do this?例如,如果我想实现属性 getter 和 setter,我可以这样做吗? In C#, I could just type:在 C# 中,我可以输入:

p r o p TAB p R 0 p TAB

What options are available in F#? F# 中有哪些可用选项?

此功能可以作为VS 扩展添加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM