My question is almost similar to Gappy Hilmore but slightly different.

In my case, I can use Shift + ENTER to run the code as usual. Note: it's ENTER for me as I'm using Dell laptop, Mathematica 12.2 on Windows10

The problem is, I'm not able to use ENTER just for the sake of going to the next line on the same cell.

This is my current situation, everything has to be a long code without a nice separate line in between (if not I have to merged the cells manually)

...and once I press enter, it just goes to the next input line

I did uninstall Mathematica and reinstalled it, but the problem stays. I try to manually corrected KeyEventTranslations.tr as mentioned by Ilian Gachevski here but still not working.

This is not coding technicality, but it's annoying. I didn't have this problem on macOS or Windows7.

Any tips and tricks anyone? Cheers!

  • $\begingroup$ Which “enter” key are you using? Is it possible that your enter key is being interpreted as the enter on the number pad? In that case, it is treated as shift+enter. $\endgroup$ Nov 26, 2021 at 21:47
  • $\begingroup$ @CATrevillian this laptop has only one Enter key . I'm still new with this laptop, do you think it has to do with the computer? $\endgroup$
    – nightcape
    Nov 27, 2021 at 1:18
  • 2
    $\begingroup$ From what you've shown, it looks like pressing Enter key runs the Divide Cell command, which usually has a keyboard shortcut Shift+Ctrl+D. Can you confirm that the action of Enter key is indeed the same as using Divide Cell from the menu? Can you check which shortcut is bound to the Divide Cell command in the menu? $\endgroup$
    – Domen
    Nov 28, 2021 at 11:50
  • 1
    $\begingroup$ It seems that FrontEnd`ReturnCreatesNewCell has been set to True. $\endgroup$
    – rnotlnglgq
    Nov 29, 2021 at 6:12
  • 5
    $\begingroup$ Does this answer your question? Mathematica 12.1 is treating all my cells as raw texts by default $\endgroup$
    – rnotlnglgq
    Nov 30, 2021 at 7:37


Browse other questions tagged or ask your own question.