Results 1 to 3 of 3

Thread: Auto Save not working in STS

  1. #1
    Join Date
    Nov 2011
    Posts
    5

    Default Auto Save not working in STS

    Hi,
    I'm an eclipse user, who is a newbie to STS. Whenever i change some code in a groovy file in STS and try to run it, it always runs the last saved version, unlike in Eclipse which auto saves the edited code and runs the newer version.
    This is a little annoying as whenever I change the code and run it (without manual saving, as I'm used to Eclipse) I always get the results for the older version of code.

    Is there setting to make the code autosaved or atleast make STS prompt me if I change any code.


    Thanks & Regards,
    Riswan

  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    Try changing this setting:

    Preferences -> Run/Debug -> Launching -> "Save dirty editors before launching"

    The default is to prompt, perhaps your workspace somehow had that setting changed.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3
    Join Date
    Nov 2011
    Posts
    5

    Default

    Thanks a lot Andrew. That solves the problem

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •