notebook icon indicating copy to clipboard operation
notebook copied to clipboard

Is there any shortcut to insert a new line below the current line?

Open GoBigorGoHome opened this issue 7 years ago • 19 comments

As described in the title.

GoBigorGoHome avatar Sep 14 '18 12:09 GoBigorGoHome

esc b is a shortcut to add a new cell beneath the current one. Likewise, esc a inserts a new cell above the current one.

DaveSnell avatar Sep 17 '18 17:09 DaveSnell

esc b is a shortcut to add a new cell beneath the current one. Likewise, esc a inserts a new cell above the current one.

That's nice and all, but what about lines (not cells!)

hamcapem avatar Apr 04 '19 10:04 hamcapem

I have the same requirement。Inserting a new line now is not that convenient like pycharm which has a shortcut "shift + enter"

buzzf avatar Sep 07 '19 11:09 buzzf

On a Mac you can use fn + return.

efaves avatar Dec 03 '19 23:12 efaves

is there any solution yet ?

Ahmed7fathi avatar Apr 26 '20 13:04 Ahmed7fathi

anyone?

dominic-springfield avatar Jun 03 '20 15:06 dominic-springfield

Yes you simply click on the area to the left of In [ ] until the box goes from Green to Blue, then Type 'a' for a new cell, on windows. Not sure if it is the same for mac

jazbassi1 avatar Jun 08 '20 15:06 jazbassi1

just pressing 'end' key then 'enter' will do

tomato1mule avatar Jul 26 '20 10:07 tomato1mule

just pressing 'end' key then 'enter' will do

wow that's old gold smart way thank u

Ahmed7fathi avatar Aug 05 '20 06:08 Ahmed7fathi

alt + enter will do

vijayabhaarathy avatar Aug 05 '20 07:08 vijayabhaarathy

Would really appreciate this functionality. In VSCode we have Shift-Enter and it saves a whole load of time when entering parameters.

wiktor-jurek avatar Oct 19 '20 21:10 wiktor-jurek

Windows: ctrl + down (moving to the end of line) enter

Only works if u don't have lines below.

Tixotrop avatar May 29 '22 07:05 Tixotrop

alt + enter will do

and how to delete it?

KSKUNENE avatar Jun 09 '22 11:06 KSKUNENE

alt + enter will do

It just 'Run Selected Cells and Insert a new Cell below', maybe 'insert a new line below in the same cell' will be better, just like Ctrl+Enter in VSCode.

SDZZGNDRC avatar Jan 18 '23 06:01 SDZZGNDRC

In Pycharm, ctrl + shift + enter is ok, but I don't know how to do it in web browser

nianqinianyi avatar Aug 26 '23 06:08 nianqinianyi