Setting the work area (Timeline window)
Set beginning of work area to current time
B
Set end of work area to current time
N
Set work area to selected layers
+ Alt + B
Set work area to composition duration when no layers are selected
Windows shortcuts > Setting the work area (Timeline window)