C# Visual Studio 2019 代碼自動補全 TAB+TAB


可使用TAB+TAB 自動補全代碼的關鍵字列舉:

if 、else、switch

for、foreach

do、while

class、enum、interface

using  + Tab +Tab      輸出 using  代碼塊      

 

 try +Tab+Tab              輸出 try catch代碼塊  

 tryf + Tab + Tab          輸出 try finall       

 exception +Tab +Tab     輸出 異常        

 

prop + Tab+Tab          輸出 字段與屬性代碼 自動屬性(property)

propg +Tab+Tab         輸出 只有 get 訪問器支持的字段與屬性

 

cw + Tab + Tab           輸出 Console.WriteLine();       

mbox + Tab + Tab      輸出 MessageBox.Show()

svm +Tab+Tab           輸出 無返回值void Main()    

sim + Tab +Tab          輸出 整形的int Main()方法  

 

 ctor +Tab+Tab               輸出 構造函數代碼              

indexer + Tab + Tab       輸出 indexer 索引代碼 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM