When i hide the inspector window (normally shown on the right side of Xcode) and hover to the right edge of the Xcode Window, the inspector window automatically slides in. How can i prevent xcode from doing this and hide the inspector window permanent?
That is a normal behavior when you use Xcode in full screen mode. If you do not want the inspector to appear on hover, don't use full screen mode. (If you don't like this feature, file an enhancement request with Apple.)