I noticed that Xcode doesn't show as installed in the Mac App Store after i deleted the space hogging 3GB installer from my Applications folder.
So i installed Xcode again but grabbed the app from the private cache and then stripped out all the packages and then left the receipt, executable & edited on the icon. now its just a 540KB app which you can put in your Applications folder and Xcode will show as installed.
I hid the app using this command in Terminal:
sudo chflags hidden /Applications/Install\ Xcode.app
So i installed Xcode again but grabbed the app from the private cache and then stripped out all the packages and then left the receipt, executable & edited on the icon. now its just a 540KB app which you can put in your Applications folder and Xcode will show as installed.
I hid the app using this command in Terminal:
sudo chflags hidden /Applications/Install\ Xcode.app