i know in java and other nice languages it\'s possible to comment out a bunch of lines at the same time. is it possible to do this in vb.net?
No it is not you need to comment out each line individually
Yup. Select the text and then press Ctrl-K, Ctrl-C. And you can uncomment it using Ctrl-K, Ctrl-U.
You can use conditional compilation to achieve the same effect:
#If False Then
Dim parameters() As SqlParameter = _
{ _
New SqlParameter("@program_year", programYear), _
New SqlParameter("@report_id", reportId), _
New SqlParameter("@report_group", reportGroup), _
New SqlParameter("@report_period", reportPeriod) _
}
Return SqlHelper.ExecuteDataSet(Report.ConnectionString, kSql, parameters, CommandType.StoredProcedure)
#End If
If you edit VB in emacs, you just do M-x comment-region.
If you mean syntactically, like /* ... */
in C++, then no. But if you mean from your IDE, then from Visual Studio: