TransWikia.com

Enter without execute

Mathematica Asked by Gappy Hilmore on October 22, 2021

As far as I know shift+enter executes the code whereas plain enter merely goes onto the next line. However, sometimes pressing just enter also runs the code and I cant type onto the next line without starting the code, then going back and pressing enter mid text. What is causing this inconsistency?

2 Answers

On my Mac and Mathematica 12.1,

RETURN: goes to a new line in the current cell


OPTION-RETURN: starts a new cell of same style without evaluating the old cell (quite useful with text cells)

DOWN-ARROW: starts a new cell of the INPUT style without evaluating the old cell


SHIFT-RETURN: If in an INPUT cell, starts a new cell after evaluating the current cell. If in a text-type cell, acts like a regular RETURN

ENTER: same as SHIFT-RETURN

Answered by PaulCommentary on October 22, 2021

Do not type the ENTER key, instead use the RETURN key to go to next line without evaluating.

The ENTER key is the one next to the numbers pad, on the right side of the keyboard.

The ENTER key is the same as hitting SHIFT RETURN.

The RETURN key is normally in the middle of the keyboard.

enter image description here

Answered by Nasser on October 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP