Hey guys it took me a while to work this out but this is the best way to do it.
place a folder on your desktop call it what ever you want im just gonna call it forge for this tutorial.
so in the folder forge you want to have been to files.minecraftforge.net and downloaded the version ending in 1025 which is the recommended when i made this tutorial. drag and drop the .zip folder with minecraft forge in it into the folder on your desktop. then go into the folder and right click the zip file and extract here.
once youve done that go ahead and hold shift then right click then click open command window here.
when the command window opens type in this line of code: gradlew.bat setupDevWorkspace eclipse
please use the eclipse ide because it is the most simple to use and understand for beginners and experts.
that will have set up the environment for eclipse. you can then close down command prompt when it says build complete. then open eclipse and it will ask you where you want the workspace you want it in the folder called eclipse in the folder you created on your desktop.
then when you click finish it will come up saying there is one error in the src/main/java file path go into it and find example.java and delete anything in the flminitilizationevent that is whats causeing the error and its not needed cause it doesnt actually do anything.
if anyone wants to request me to do more tutorials please do i love helping young new modders.