GNU Nano is text editor uses the command-line interface. We are unable to use cursor in Nano Text Editor. So, here are some keyboard shortcuts mostly filtered for Coding......
Intro
We can see all shortcuts by pressing CTRL + G which will show help menu. In this help menu, all keyboard shortcuts are present. You can use them at your convenience. But this help menu seems to be very complicated, So I am filtering some commands which are frequently useful for any programmer while coding with Nano.Shortcuts
Basic
- CTRL + G or F1 >>>> Displays help menu
- CTRL + X or F2 >>>> Close / Exit from Nano
- CTRL + O or F3 >>>> Write current file to disk
Code Navigation
- CTRL + F >>>> Move forward
- CTRL + B >>>> Move backward
- CTRL + W >>>> Search for string
- CTRL + P >>>> Move to previous line
- CTRL + N >>>> Move to next line
- CTRL + A >>>> Move to beginning of line
- CTRL + E >>>> Move to end of line
- CTRL + Y >>>> Move to previous screen
- CTRL + V >>>> Move to next screen
- CTRL + L >>>> Refresh current screen
- CTRL + Space >>>> Move Forward one word
Code Editing
- ALT + U >>>> Undo
- ALT + E >>>> Redo
- ALT + ^ >>>> Copy current line
- CTRL + K >>>> Cut current line
- CTRL + U >>>> Paste current line
- CTRL + C >>>> Display position of cursor
- CTRL + R >>>> Insert another file into current file
- CTRL + I >>>> Insert tab at current cursor position
- CTRL + M >>>> Insert new line at current cursor position
- CTRL + D >>>> Delete character under cursor
- CTRL + H >>>> Delete character at the left side of cursor
- CTRL + T >>>> Invoke spell checker
These commands are very useful for navigating & editing the code. If you want to learn more about nano, please check this blog. If you like this post, please share with new aspiring coders/programmers.
Connect with me on LinkedIn - DHANRAJ CHAVAN
Comments
Post a Comment