Interfacing or uploading code to ESP8266 and HC-05 together

I'm using bluetooth hc-05 and esp8266 together for my project. I have successfully uploaded the code to ESP8266 and note that i'm using WIFI library so that i have selected the Generic ESP8266 board from board menu and it is working fine. Every time i upload the code it works. Now i want to use Bluetooth HC-05 too. I don't know is it possible to upload the code for both ESP8266 and HC-05 at the same time by selecting the generic esp board from board menu? Because i don't want to use AT commands for ESP8266. Please help me how i can do this?
My hardware is
Esp8266
Bluetooth hc-05
Arduino UNO

If you want help you should post your code. Put it into the [ code ] tags. Post ALL your code.

I also don't understand what you are trying to do. You don't want to run the AT-commands, that's ok. But why are you using an Arduino then? You shouldn't need the Arduino if you go that route.

I'm using ESP8266.h library so to use this library i have to select Generic ESP from Tools>board instead of arduino UNO. Now i want to connect a Bluetooth too (ESP+hc-05 with UNO). Can i still upload the code by selecting Generic ESP board because now bluetooth is also attached along with esp8266

izj99:
I'm using ESP8266.h library so to use this library i have to select Generic ESP from Tools>board instead of arduino UNO. Now i want to connect a Bluetooth too (ESP+hc-05 with UNO). Can i still upload the code by selecting Generic ESP board because now bluetooth is also attached along with esp8266

Again your story makes no sense. You cannot program the HC-05. You can program the Arduino to control the HC-05, but you cannot program the HC-05. The ESP you can program or program the Arduino to control the ESP.

For the second time if you want help post ALL your code and give a detailed description how you hooked everything up. Which ports you hooked it up to etc.