[英]How to compile a VB.NET console application's source code using VB.NET
[英]Remove all comments from VB.NET source code file
Visual Studio編輯器中是否存在宏,可以從VB.NET源文件中刪除所有注釋?
使用菜單編輯->查找和替換->使用正則表達式快速替換
查找內容: ^{.+}'.+$
替換為: \\1
將取代
text ' comment
至
text
查找: ^{(([^"']*"[^"]*"[^"'])#|[^"']*)}'.*$
替換為\\1
也將適用於以下內容(SQL):
cs = "INSERT INTO db (time, t1, t2) VALUES ('" & Time.ToString & "', NULL, '" & t2 & "')" ' COMMENT
編輯*
http://bytes.com/topic/visual-basic-net/answers/579000-utility-remove-comments-vb-net-files
有一些選擇。
如
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.