open ARDUINO IDE
goto FILE
select PREFERENCES
copy the below link in Additional Boards manager URL's
http://arduino.esp8266.com/stable/package_esp8266com_index.json
Now Goto TOOLS-Select BOARD- goto BOARDS MANAGER- enter esp8266 by ESP8266
COMMUNITY -search install latest VERSION