adobe / brackets.io

brackets.io website
111 stars 80 forks source link

Linking files to HTML #243

Closed danielskg closed 3 years ago

danielskg commented 3 years ago

Hello world! :)

I am fairly new to coding and using Brackets and Github.

I am practicing with linking files and URLs in Brackets, but I cannot seem to be able to open the dialog that allows me to choose a file from my computer's folders.

Last year I used to code with Dreamweaver and whenever I wanted to insert a file in the href attribute of <a> or src of <img>, a dropdown menu would appear that showed other files in that folder, and at the bottom of it, it would show an "Open..." that opened the Finder dialog allowing me to select any file from my computer just by choosing it (the same that opens when you press "Save As..."). It would also insert the relative path between the quotes of href or src attributes. (I would also open the same dropdown menu by pressing Control-Space).

In contrast, in Brackets, href and src attributes do not offer me the same assistance. Control-Space brings only the index.html (the only file in the folder) but does not allow me the choice to navigate to another folder and link a file by clicking on it. I tried typing "../../../" as far back as the computer root, but it still won't suggest anything.

My question is: is there a way for Brackets to allow me to choose a specific file from my computer by opening the folders dialog (either automatically when I type <a href=""> and <img src=""> or by clicking Control-Space or by any other shortcut I am unaware of), or must I always know the exact relative path and the exact filename in order to link it to my code? Is there an extension I should download that enables it? In brackets.json I have enabled all hints as "true", but it still doesn't suggest opening the Finder dialog.

Thank you in advance. Daniel

P.S.1. If this has been answered already, please tell me where should I look for the answer and I will delete this. P.S.2. If here is not the correct place to post this question, please instruct me where I can post it and I will promptly delete it from here.