public class Hello2{
public staic int sum(int n, int m)
{
return n + m; // here is cursor
}
//I want move to cursor here
}
I want to move down the cursor under bracket
Is there a efficient way to move down the brackets rather than the arrow keys on the keyboard?
ctrl + n move cursor to next line
enter line feed
enter line feed
here you are 😃
Related
When I press shift + alt + f in a cpp file in Visual Studio Code, it lines up the code as following below:
int main()
{
return 0;
}
however, I'd really like it lo line the code as following:
int main(){
return 0;
}
it's not that of a problem but I really don't want to fix every bracket one by one to line them up like I wish to be. Is there any extension or some sort of way to solve this issue? Thanks!
I am realy new on ahk.
Is it possible to have a list of text and go trough that list with F12?
A
B
C
If i press F12 show msg Box with A and when i press again F12 it shows B
Is that possible?
Thanks
Skadie
This maybe can give you some ideas..
#Persistent
text = A B C
array := StrSplit( text, " " )
Return
F12::
i++
if i > array.Count()
i = 1
MsgBox % array[i]
Return
I want to change same lines at the same time.
for example I want to change { backgroundColor: '#fff' } at anywhere on my file.js. (I don't want to use Replace)
Select { backgroundColor: '#fff' } with your mouse and press cmd + shift + L (or ctrl + shift + L) to select all occurrences of it in your file. Then, you can change them all at the same time.
Try
Ctrl + F (backgroundColor: '#ufff')
Alt + Enter
This will select every instance and give each an active cursor. Hit Esc to exit multi cursor mode.
I know Toggle block selection but sometimes I want to skip a line.
int number1;
boolean exist1;
int number2;
boolean exist2;
int number3;
boolean exist3;
I want to change prefix of the number only. I can use replace but prefer something like multiline cursor. I need it like this:
int number1;
int number2;
int number3;
boolean exist1;
boolean exist2;
boolean exist3;
It's not possible to have multiple cursors in Eclipse.
To rearrange lines move them with ALT + UP or ALT + DOWN. Eclipse's block selection mode is sufficient for most cases where you have to change block-arranged statements and you can easily change pre- or postfixes this way.
A handy extension is "AnyEdit" that allows sorting or converting all selected lines.
It's possible, you can use ALT + click.
I'm using AutoHotKey and I want to achieve something particular.
I have an hotkey that should perform a certain action, inside this hotkey, I would like to code something to detect if I only press the "C" key, or if I press "C" then "L" keys.
If there is only the "C" key pressed, then it should perform an action, otherwise , if "C" then "L" keys are pressed it should do another action.
But I can't do this as I don't really understand KeyWait, I mean how can I do something like that :
if(KeyWait, C){
firstAction
else {
if(KeyWait, C){
if(KeyWait, L){
anotherAction
}
}
Solved using the input function.
; Get one character and store it in the Character variable
Input, Character, L1
If Character = C
{
; Give up to half of one second to type L
Input, Character, L1 T0.5
If Character = L
MsgBox % "We have C and L"
else
MsgBox % "Just C here, give an L next time"
}