A text editor is simply a computer program and a tool used for editing plain text. An IDE, on the other hand, is a full-fledge software environment that consolidates basic developer tools required to build and test software. Without IDE, a developer would have to select and manage all these tools separately, but IDE brings all these tools together as a single framework or service.
Depending on your operating system, your preferred coding languages, your budget, and your personal preferences, you will choose the suitable Text editor or IDE. Some popular of them: