Prepare for It. In this case, all you can do is politely deliver your resignation, then strive to make the transition as easy as possible for your team. Your manager may not have the ideal reaction to your news__and your workplace may not be the most pleasant environment for the next two weeks__but to avoid burning bridges, it's best to work through it with a positive attitude.
However, I'm happy to help out however I can in the next two weeks." If you haven't landed a new gig yet or your new start date is negotiable, know your limits. If you're willing to stay an additional three weeks, for example, don't let your manager talk you into staying three more months.