Changing cursor position after opening another tab

Hi! After changing tab (for example from css file to custom code) cursor goes to the first row of custom code file. When code is big the problem appears. I must find the last position where I finished to write or correct the code. Maybe it is possible to treat?