VSCode VBA Snippets:提升Visual Basic开发效率的代码片段
在Visual Studio Code中,VBA Snippets为Visual Basic开发者提供了一套高效的代码片段工具,支持多种文件格式,包括.vb、.brs、.vbs和.bas。通过简单的设置,您可以快速访问并使用这些代码片段,极大地提升您的开发效率。
支持的语言和文件格式:
使用方法:
安装此代码片段后,请在您的设置中添加以下内容:
"editor.snippetSuggestions": "top",
代码片段概览:
Dim arr()
Dim bol As Boolean
Dim lng As Long
Dim dbl As Double
Dim str As String
Dim obj As Object
Private
If condition Then
End If
If condition Then
Else
End If
If condition1 Then
ElseIf condition2 Then
Else
End If
With
End With
For i = lower To upper
Next i
For Each variable In collection
Next variable
Do
Loop While condition
Do While condition
Loop
While condition
Wend
Private Sub func(input)
'
' descrip.
'
' @since 1.0.0
' @param {type} [name] descrip.
' @return {type} [name] descrip.
' @see dependencies
'
End Sub
Private Function func(input)
'
' descrip.
'
' @since 1.0.0
' @param {type} [name] descrip.
' @return {type} [name] descrip.
' @see dependencies
'
End Function
Select Case test
Case lists
statements
Case Else
elseStatement
End Select
MsgBox "message", buttonType, "title"
Range(Cells(), Cells())
Cells()
Worksheets("")
UBound
LBound
To
Fix
Int
ReDim
Set
Call
Split
Preserve
Option Explicit
On Error Resume Next
ClearContents
Clear
Columns
Rows
CreateObject
IsEmpty
通过使用VSCode VBA Snippets,您可以更快地编写和调试Visual Basic代码,提高开发效率。
本站所有资源都是由网友投稿发布,或转载各大下载站, 请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则 产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:study_golang@163.com