How to install Homebrew without Command Line Tools if already have Xcode

homebrew

I already have Xcode installed and want to install Homebrew. It wants to install Xcode Command Line Tools and I don't have space. Is there a way to install Homebrew without it trying to install the Command Line Tools?

Best Answer

Apple's website for downloading developer tools says that "If you use Xcode, these tools are already embedded in the IDE."

So you shouldn't need to install them again.

But, as mentioned in the commments: it's a 460 Mb download. If you don't have space for that, you're not going to have space for HomeBrew, or any of the things it installs.