Automatic ID change in the code

Would it be possible to automatically change all instance of the ID on the page.

For example : when i change the ID of a serverConnect, it have to be change in all the place where it is used.

This was working like that in Delphi for example.