How can I get the previous command in DrRacket? - racket

Like Racket - how to get the “previous executed command” in bash script? but with DrRacket. How can I get the previously executed command in DrRacket (like up arrow function in bash)?

Use esc + p, or you can define your own bindings.
Also, esc + n skips forward instead of backward.
To help you remember:
previous, next

cmd + ctrl + up (or down) for Mac

It's now the same on mac as the original answer.
esc + p / n

Related

What is shortcut for uncomment in Visual Studio Code?

Old way with CTRL + K CTRL + C works for commenting but old way CTRL + K CTRL + U not working anymore for uncomment, if anyone know new shortcut I will be grateful.
Thanks.
I just updated my VSCode to the version you mentioned. The combinations work exactly as you described. It must be something that was changed on your computer.
Go to File => Preferences => Keyboard Shortcuts
(Or press CTRL + K and then CTRL + S)
look for Remove Line Comment. In my settings it still says
If your VSCode has a different keybinding, change it back to what you want.
I had the same problem. In the newer version its actually CTRL+/ to uncomment.
CTRL+/
Note that this is the / on the numeric keypad!
Mac OS you can use COMMAND + / for commenting and uncommenting
In windows Inorder to comment and uncomment the code in VS CODE
CTRL + K ========> to comment the code
CTRL + / ========> to uncomment the code
use ctrl+ / to uncomment in VS Code.
On Windows, I am using strg + #
It's a default shortcut in VSCode --> toggle line comment
but it works also for blocks.
In windows system, below commands works for me for comment and uncomment in VS CODE-
CTRL + K --- to comment OR CTRL + / ---to comment
CTRL + / --- to uncomment
For windows:
Remove Comment Line:- ctrl+k ctrl+u
For Mac OS just select all the stuff you want to comment or uncomment and press Command + /
What worked for me is :
CTRL + Shift + K
I'm using VS code on Mac, Version: 1.49.0 and I had similar problem.
In my case shortcut "cmd + k, cmd + u" made text uppercase. It turned out I have two commands assigned to this shortcut.
In "Keyboard Shortcuts" you can also filter by shortcuts (or "Keybindings") by pressing keyboard icon on the right in the search bar, it will record keys:
To fix this, I just changed "Transform to Uppercase" Keybinding to something else as I rarely use it.
Take care. Some extensions change the keyboard shortcuts. Take a look in the attached screenshot. I don't know what extension changed mine to Shift + Ctrl + K on Windows.
I recommend instead of using separate shortcuts for add/remove comment to set toggle line/block comment with the same shortcut so it also remove comment when the line/block is commented out:
editor.action.commentLine
editor.action.blockComment
you can use
Ctrl + /
for both comment and uncomment the code in vscode
Use CTRL+/ for both comment and uncomment.
Also here is the cheatsheet with all shortcuts.
https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

VS code, jump to after closing quote/braces/parenthesis

With Visual studio Code if I'm in the middle some quote/braces/brackets/parenthesis is there a way to jump to after end of the current block?
Eg.
If
it allows me jump to the end of the quote
Or from:
to
April 2020 Update
Yes, use Ctrl+Shift+\, (or ⇧ + ⌘ + \ on Mac) to jump to closest bracket. If cursor is currently in-between the brackets, first it will jump to closing bracket, each consequent press will jump between opening and closing brackets.
You can reassign the binding to your liking in Keyboard Shortcuts using editor.action.jumpToBracket command.
Use ctrl+right it triggers the cursorWordEndRight command.
It moves the cursor by whole words. These "words" include spaces, parenthesis, commas and the likes.
You can modify the keybinding shortcut to what you desire.
I personally use ctrl+alt+space for now.
It's not perfect but it's the best alternative I have currently.
The TabOut extension doesn't do exactly what you're describing (I think), but comes very close.
Note: I'm still trying it out so I'm not sure if I like Tab meaning different things depending on the context, but so far it's getting me pretty close to what I want.
use Ctrl + Enter in Windows 10 if you want get outside and go downline. or Ctrl + Shift + Enter if you want get outside and go upline.
Finally find out on Mac to jump to closing bracket/parenthese :
⌘ + ⇧ + £

Netbeans Lowercase Shortcut Not Working

Netbeans has a nice set of keyboard shortcuts, but unfortunately, I can't seem to get all of them to work. Specifically, there's a keyboard shortcut for converting selected text to lowercase: Ctrl+U L. However, no matter how many times I try this (or variations on it), nothing happens I just get a 'ding' sound (it used to be that nothing happened). I check the Keymap option on Netbeans, and it shows that this is still the shortcut mapped to Ctrl+U L:
What am I doing wrong? How can I use this keyboard shortcut?
Note that Ctrl+; or Ctrl+Shift+; works just fine, among many other shortcuts.
To activate this shortcut you have to hit Ctrl+U then release Ctrl and then hit L.
It's like saying Ortomala Lokni
to uppercase a selection, press Ctrl + U then U without Ctrl
Let me add also:
to lowercase a selection, press Ctrl + U then L without Ctrl
to reverse case in the selection, press Ctrl + U then S wthout Ctrl
if you are using mac use command instead of control
Command + U + L to lowercase
Command + U + U to uppercase

Eclipse shortcut "go to line + column"

Does anyone know if there is the shortcut "go to line + column" in Eclipse?
Ctrl+L Jump to Line Number. To hide/show line numbers, press ctrl+F10 and select 'Show Line Numbers'
There is no way to go to a particular column according to my knowledge.
On OSX, the shortcut is ⌘ + L
It you want more short-cuts, refer http://www.shortcutworld.com/en/win/Eclipse.html
As you are aware CTRL+L goes to a particular Line, there is also CTRL+Q to go to the last edit location. The is no key combination in Eclipse to go to a particular Line and Column.
You can use a Keyboard Macro (available as hardware in some keyboards and included as software with some other keyboards). An explanation for Microsoft is here: http://support.microsoft.com/kb/237179 .
A Program like Autohotkey http://www.autohotkey.com/ can also be used.
You can use Ctrl + L to jump to specific line number
You can find a large list of eclipse shortcuts here: http://javatutorial.net/eclipse-shortcuts
You can use 'Command' + L to find line number in eclipse.
You can use CTRL + forward or backward key to jump to the next dot in the same line.
for example, in System.out.println("test"); you can switch between System, out and println by using CTRL + forward and backward key.

How to search string under cursor in Eclipse

In vim, pressing * in command mode performs an automatic search of the word under the cursor. How can I obtain the same in Eclipse?
A combination of two keystrokes:
First, hit Ctrl + Shift + Right Arrow to invoke "Select Enclosing Element". This will select the word under your cursor.
Use Ctrl + K (Cmd + K on OS X) to "find next".
It appears it was not possible in 2004, and it's still not possible, apparently. I'm speechless...
I also need this functionality and created a small plug-in which adds commands for doing this. You can download it and find more details here: http://eclipselabs.org/p/eclipse-tweaks/
Windows 10, tested on Eclipse 2020-03:
Two Steps:
1. Alt + Shift + Up Arrow, to select the word under the cursor
2. Ctrl + K to find the selected word forward
(Ctrl + Shift + K to find the selected word backward)
NOTE:
If you are inside an XML tag, Alt + Shift + Up Arrow will select from the beginning of the tag to the end tag, including all enclosing elements. Try it!
BONUS:
Ctrl + Shift + Down/Up arrows to navigate methods, as sometimes the selected word is a method you want to go to.
Better still,
Ctrl + O - Go to a specific method, by searching (Just enter the first few letters of the method, and Enter)
Cheers
Press Ctrl + k on a Windows machine. On a Mac, Cmd + k should work (seen here).
Not exactly the same, but maybe helpfull if you work with java. In a .java file you can press
CTRL + SHIFT + u
to find occurences in the same source file.
You can also use Shift + Ctrl + K to search next backwards.