In Visual Basic how do you create a block comment [duplicate] - vb.net

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
commenting VB code
Does anybody know how to do a block comment in Visual Basic?
Note: I did a few searches on here and neither those results nor the results for 'Questions that may already have your answer' appeared to ask this question

There is no block comment in VB.NET.
You need to use a ' in front of every line you want to comment out.
In Visual Studio you can use the keyboard shortcuts that will comment/uncomment the selected lines for you:
Ctrl + K, C to comment
Ctrl + K, U to uncomment

There's not a way as of 11/2012, HOWEVER
Highlight Text (In visual Studio.net)
ctrl + k + c, ctrl + k + u
Will comment / uncomment, respectively

Not in VB.NET, you have to select all lines at then Edit, Advanced, Comment
Selection menu, or a keyboard shortcut for that menu.
http://bytes.com/topic/visual-basic-net/answers/376760-how-block-comment
http://forums.asp.net/t/1011404.aspx/1

In Visual Studio .NET you can do Ctrl + K then C to comment, Crtl + K then U to uncomment a block.

Related

Snowflake - How to Multi Line Comment

Is there a shortcut for multi line commenting out? A.k.a. commenting blocks of SQL at a time via a shortcut or menu option?
You have to highlight the rows you want to comment out and then press Cmd (Mac) or Crtl (Windows) + /
See here: https://docs.snowflake.com/en/user-guide/ui-worksheet.html
I don't think there's something like multi-line comment in snowflake. Even on the community page: page there's just the shortcut for a single line comment while having the whole thing highlighted, which is:
Press CMD + / (Mac) or CTRL + / (Windows) again. The comments are removed from the highlighted lines.

The key combination (Ctrl + K, Ctrl + S) is bound to command (Surround With...) which is not currently available

I am trying to insert a code snippet that will surround the selected text in the code editor. I tried to follow this article but can't make sense of it. When using the keyboard shortcut provided, I just get this message:
Any help would be appreciated!
Thanks in advance

Remove surrounding method in IntelliJ

Is it possible to remove the surrounding method from a statement with a shortcut ?
I want to go from
foo(bar(x))
to
bar(x)
as fast and easy as possible.
Kind of the inverse "surround with" functionality. CTRL + W is a nice way to select the inner part of the brackets, but how can I keep only this inner part and remove the outer method ?
It should also be possible to go from
foobar(foo(bar(x)))
to
foobar(bar(x))
The best solution i have found so far is by using macros.
If you dont know how to record macros: https://www.jetbrains.com/help/phpstorm/using-macros-in-the-editor.html
Step 1: Record this macro:
CTRL + X
CTRL + W
CTRL + W
CTRL + V
Step 2: Assign a shortcut to the macro (also discribed in the link above)
If you edit your macro it should look like this:
After these steps you can use this macro pretty comfortably:
Just hit CTRL + W until you have selected, what you want to keep.
Then hit your newly assigned shortcut and it will behave just as requested.

Is there a keyboard shortcut to select current word?

In JetBrains PhpStorm, what is the keyboard shortcut to select the current word? (I mean the word where the cursor is)
Ctrl + W selects the current word (Extend selection).
Yes there is but it's different from one IDE to another, And here are 3 examples:
SublimeText: Selection -> Expand Selection to Word (The shortcut will be shown next to it according to your OS)
PhpStorm: Edit -> Extend Selection (The shortcut will be shown next to it according to your OS)
MAC Extended Selection Shortcut: ⌥ + ↑
MAC Shrink Selection Shortcut: ⌥ + ↓
MAC Select all occurrences: ˄ + Command + G
Visual Studio Code: Selection -> Add Next Occurrence (The shortcut will be shown next to it according to your OS)
MAC Add Next Occurrence: Command + D
MAC Select All Occurrences: Shift + Command + L
^+G
it should work across all JetBrains IDEs
If you have CamelHumps enabled, Alt + J will be your friend.
to select the current word in Php storm (if you're using Windows) you can use ctrl+j
you can change it from: setting → keymap → click the search icon next to the search filed(search by keyboard shortcuts) → type ctrl+j → find "Add Selection for Next Occurrence" and change the keyboard shortcut of that as you want
For the people that comes here in search of a way to just delete the word you are in the middle of, you can use ctrl+del+backspace (combining the two shortcuts ctrl+del / ctrl+backspace).
This deletes from the cursor to the beginning of the word (ctrl+ backspace) and then from the cursor to the end of the word (ctrl+del).
On Linux.
Select next word: Ctrl+Alt+J
Select all occurrences of word: Shift+Ctrl+Alt+J

shortcuts for netbeans to select next word for multiple editing

Is there any shortcuts to select next word in netbeans?
Like Ctrl+d in Sublime text select word (repeat select others occurrences in context for multiple editing)
In netbeans you can use CTRL + J (in MacOSX CMD + J).
See https://stackoverflow.com/a/39869089
Working version 8.2
Windows CTRL + J
MacOSX CMD + J
Not quite the same thing but if you are in a supported programming language you can use Ctrl + R to refactor variable's, funciton names, class names etc.