Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

When making separate cells in order to make separate computations to better see the result of each one before going to the next cell to do the next computation (which is a good way of doing things), it will be very useful and more efficient if the cursor would jump to the start of next input cell automatically.

This allows one to keep the hand on the ENTER key, and just hit ENTER again, without having to reach to the downarrow key to reposition the cursor to the next cell, and move the hand again to the ENTER key. This can get tiring if one has many cells to process one by one. (This is btw how Maple does it, it automatically jumps to start of next command)

Here is an example

enter image description here

Is it possible to make the notebook do this?

share|improve this question
    
+1 Thanks for posting the question btw. –  Leo Fang Jul 29 '13 at 2:28
add comment

2 Answers

up vote 12 down vote accepted

You can setup CellEpilog to automatically advance a cell after evaluating the current one. That way, you don't need to press the down arrow after evaluating a cell.

SetOptions[EvaluationNotebook[], 
    CellEpilog :> SelectionMove[EvaluationNotebook[], Next, Cell]]
share|improve this answer
3  
You beat me to it! (By only seven odd hours :o) +1 –  Mr.Wizard Jul 29 '13 at 9:26
    
@rm-rf Is there any way to evaluate the next cell automatically without the need to press ENTER? –  M6299 Jul 30 '13 at 9:15
    
@M6299 Why don't you do Evaluate Notebook from the menu then? –  rm -rf Jul 30 '13 at 14:36
    
@rm-rf Because I want to evaluate only some of the cells and I use SelectionMove[EvaluationNotebook[], Next, Cell]] at the end of these cells. –  M6299 Jul 31 '13 at 5:53
add comment

If your keyboard has a numeric keypad, or a way to emulate one by using a function key, you can use Shift+Enter on the numeric keypad. This keystroke will evaluate a cell if you're in an evaluatable cell, or move to the next evaluatable cell if you're not. It would still be two keystrokes to move then evaluate, but it'd be the same keystroke.

share|improve this answer
1  
That is the reason why I always look for notebook keyboards with an Enter key... –  Yves Klett Jul 29 '13 at 7:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.