Code-Faster-With-Visual-Studio-2022-Productivity-Tips
title: Code-Faster-With-Visual-Studio-2022-Productivity-Tips
abbrlink: 5a28305f
date: 2022-09-09 11:33:44
tags:
unused namespaces : delete;
press ctrl+k+e
allign code: ctrl +k + D ; 选中或者不选中
TODO关键字
summary :type /// enter
Constructor: ctor +tab
property: prop +tab
Constructor initialized some property:选中属性;buld suggestion 灯泡建议生成;
auto genarate property by constructor args;
Immediate window
这个好用;
当函数没有接受返回值时;可以使用returnvalue 查看刚才返回的是什么;
pre build 预构建事件;
Visual Studio中,你应该知道的几个Immediate Window小技巧 - Fintech技术汇 - 博客园 (cnblogs.com)
interactive 交互式窗口;
学习csahrp ;可以琢句执行;像python 一样;
互式执行环境 (REPL) C# 交互式执行环境 (REPL) (zzz.buzz)
其它
enum可以与switch 使用;
新语法特性中:根据enum快捷生成switch 好用;
ctrl k ctrl x 代码片段选择
shift esc 关闭窗口
代码生成
在Visual studio 2022里可以edit > paste 将json 转换为class
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 程序员小航
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果