When i change code in VS and try to compile it from editor, changes does not apply

Open sln file of the project, VS will open, then run the project in VS, wait till UE4 opens, change sth in the code in VS, and then try to recompile in UE4. Should work, if not tell me which step is different.