当前位置:网站首页>Visual studio 2022 interesting and powerful intelligent auxiliary coding
Visual studio 2022 interesting and powerful intelligent auxiliary coding
2022-07-23 10:48:00 【biyusr】
A good workman does his work well , You must sharpen your tools first
As a .Net Developer , Developing sharp tools is of course the first choice for Microsoft's own : Universe first IDE — Visual Studio 了 .
see VS 2022 The official version has been released for nearly two months , I've also experienced it for nearly two months , Let's talk today VS 2022 Interesting and powerful intelligent auxiliary coding , Reducing duplicate code is urgent .
The system has its own code prompt
For example, we often output content to the console :

Or define an empty string :

Or upgrade , Associate with context variables :

Automatically generate class properties
When we are creating a common class , such as : user 、 Orders, etc .VS2022 The auxiliary coding will help us automatically generate relevant attributes , such as : User name 、 User password, etc .

This function is helpful for generating some general models , But everyone's naming style is different , Therefore, in the actual use process, it is not of great significance .
Intelligent association
On it, we have created a new User class , At this time, we want to define a User Class collection variable :

Or define a set of strings / Set of values :


Then define a string variable , Add variables to the set defined above :

Or instantiate a service class :

That's all VS2022 Some simple and interesting intelligent auxiliary coding , The cultivation of usage habits will be more or less helpful to our development , Some more intelligent auxiliary codes have yet to be discovered in use .
边栏推荐
- What is file management software? Why do you need it?
- thing JS笔记
- Error in na.fail.default(list(Purchase = c(“CH“, “CH“, “CH“, “MM“, “CH“, : missing values in obj
- SVG, canvas, drawing line segments and filling polygon, rectangle, curve drawing and filling
- Chapter2 Standard Output
- Exciting metauniverse! Wealth outlet of next generation Internet
- Cloudcompare & PCL point cloud point matching (based on point to face distance)
- Hololens third perspective development [nanny level tutorial] [stepping on the pit record]
- The safe distance between you and personal information leakage may be decided by a laptop!
- SPR:SUPERVISED PERSONALIZED RANKING BASED ON PRIOR KNOWLEDGE FOR RECOMMENDATION
猜你喜欢

TZC 1283: 简单排序 —— 堆排序

Self operation and maintenance: a new sample of it operation and maintenance services in Colleges and Universities

Error in na.fail.default(list(Purchase = c(“CH“, “CH“, “CH“, “MM“, “CH“, : missing values in obj

Introduction to partition operators, broadcast variables and accumulators of 32 spark

【视觉SLAM】ORB-SLAM: Tracking and Mapping Recognizable Features

C語言基礎知識梳理(一)

Li Hongyi machine learning 2022-hw1
C语言详解系列——函数的认识(1)库函数,自定义函数

SVG, canvas, drawing line segments and filling polygon, rectangle, curve drawing and filling

How to protect the copyright of NFT digital collections?
随机推荐
Li Nan, CTO of Yunqian Technology: technology and technical people, coevolution with digitalization
应用层重要知识(面试、复试、期末)
资源池以及资源池化是什么意思?
mysql的索引的操作
Hololens third perspective development [nanny level tutorial] [stepping on the pit record]
FPGA——SPI总线控制flash(2)(含代码)
C# EventHandler观察者模式
Redis源码与设计剖析 -- 14.数据库实现
云徙科技CTO李楠:技术和技术人,与数字化共同进化
解决servlet中post请求和get请求中文乱码现象
Jump statement and debugger
写驱动程序的时候warning LNK4210报错
SVG、canvas、绘制线段和填充多边形、矩形、曲线的绘制和填充
Mysql数据库基础
MySql 数据库表名命名规则---方便自动转换工具转换
Introduction to partition operators, broadcast variables and accumulators of 32 spark
Self operation and maintenance: a new sample of it operation and maintenance services in Colleges and Universities
Basic process of dpdk cross compilation
Jmeter-记一次自动化造数引发的BeanShell写入excel实例
Information security is in danger, and it is urgent to control the leakage of enterprise data assets