adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

help with live preview #13289

Open asadrahman opened 7 years ago

asadrahman commented 7 years ago

Hey, i was following The coding train guide for P5.JS and it was all going perfectly.

my problem is that when i go to live preview, it opens a new tab in google chrome but nothing is displayed. even the most simple code.

for example :

image

this should just open up a normal screen with a black background, but it only opens a white background screen, here let me show you below.

image

let me show you my index.html file which is default incase there is something wrong there.

image

one project i made was just messing around with the random function worked perfectly before so i thought if i just open that it should just work as i didnt edit or change anything.

image

I downloaded the P5.JS pack again thinking it wasn't working because i might of deleted something so i just moved all my projects 1,2,3, to the new folder and opened the brackets software from that folder but nothing, same problem? do i have to re-download brackets again? image

P.S I changed my theme from default bracket light to RAVEN which might of been the problem as this problem happened as soon as i changed my theme but i loaded brackets without extentions thinking it might work but nope it didnt. please help me as i would like to learn programming and only started yesterday (09/04/2017)

asadrahman commented 7 years ago

i just noticed it keeps opening http://127.0.0.1:51528/index.html ( index.html ) looks like its the problem, how do i change it from that to be the actual file i wanna open (projects)