added cursor position saving to code formatting command <F4>