shortcuts for netbeans to select next word for multiple editing - netbeans-7

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.

Related

Is there a functionality like Ctrl + D in Sublime for Intellij Idea?

In Sublime Text I used to select some text (say a variable name) and I would just type Ctrl + D to get the rest of the occurrences of the same text.
Is there a functionality like that in Intellij Idea IDE?
Select All Occurrences (Ctrl-Cmd-G on Mac OS X is already available, Windows hotkey Ctrl+Alt+Shift+J will be available from the next EAP – use double shift | Select All Occurrences action for now)

What is the Stata 11 do-file editor shortcut for selecting a command line?

A task I use multiple times a minute is to select command lines from my do-files and execute them.
The shortcut for this function in previous versions of Stata was Ctrl+Shift+Up/Down arrow. I used to use Stata 10 and now that I've upgraded to Stata 11, the keystroke sequence described in the previous sentence does nothing. I'm limited to Ctrl+Shift+Left/Right arrows, which is painstakingly slow.
Go to the start of the line (with the Home key) and then Shift+Up/Down.
Credit:
The comment by Roberto Ferrer
I automate the selecting of line and exectuting the command with the following autohotkey script.:
^+Enter::Send {Control down}l{Control up}{pause}^d{down}{Home}
Return
Above is assigned to Ctrl + Shift + Enter, but it could be any keyboard combination. I usually use Ctrl + Ö or Ctrl + Ä since I use a scandinavian keyboard.
Same code as above but assigned to Ctrl + Ö:
^ö::Send {Control down}l{Control up}{pause}^d{down}{Home}
Return
If you prefer having the cursor at the end of the next line after executing, replace {Home} with {End}

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

In Visual Basic how do you create a block comment [duplicate]

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.

How to reindent lines in IntelliJ IDEA / WebStorm?

In Eclipse, I can select a few lines and press Ctrl + I to reindent those lines. How do I do the same in IntelliJ IDEA / WebStorm?
Note:
I don't want to "indent" or "unindent" the selected lines - that would "move" the text to the right or to the left manually. I want the IDE to be clever about how to position the lines.
I don't want to reformat anything, i.e. there should be no modifications to characters beyond the first non-whitespace character on every line.
Code | Auto-Indent Lines (Ctrl+Alt+I in Windows default keymap).
On a mac, it's Ctrl+Option+I by default.
What worked for me on mac was
⌘ + OPTION + L
Windows:
Ctrl + Alt + L
Mac:
⌘ + OPTION + L
In Webstorm the option can be found as "Reformat Code" in the keymap.
The default on Mac is Alt Cmd l