brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

Suggestion: Go To Definition / Quick Edit support for back-end languages #13721

Open core-ai-bot opened 2 years ago

core-ai-bot commented 2 years ago

Issue by CB-Sean Friday Nov 11, 2016 at 10:40 GMT Originally opened as https://github.com/adobe/brackets/issues/12900


Description

Suggestion: It would be very convenient to be able to use Quick Open and Quick Edit with files other than HTML, CSS and JS.

I'm pretty sure I'm not the only one that uses Brackets for both front-end and back-end. The Quick Open and Quick Edit features are very useful, and I've noticed they really speed up the web development process.

If Quick Open and Quick Edit would be usable for PHP (maybe for Ruby and other languages too) as they are for HTML, CSS and JS, I'm sure it would improve the development for many Brackets users.

core-ai-bot commented 2 years ago

Comment by ficristo Saturday Nov 12, 2016 at 08:21 GMT


The Quick Open, if I'm not mistaken, should be available despites the languages. Quick Edit is another story and IMO should be better left to extensions authors. Have you looked if there are already some extension?

core-ai-bot commented 2 years ago

Comment by CB-Sean Monday Nov 14, 2016 at 08:26 GMT


I've tried using the Quick Open on classes and functions in our PHP framework, but it doesn't seem to work. I have tried all kind of extentions, but none of them work for me. Honestly I haven't looked into Quick Edit because I didn't really need it at the time (it's rare that I ever need to edit a PHP class in our framework). Perhaps there already is an extension for Quick Edit across languages.

Could you try Quick Open with PHP files, to see if maybe the problem is on my end. I doubt it, but I like to exclude the possibility :)

core-ai-bot commented 2 years ago

Comment by swmitra Monday Nov 14, 2016 at 08:37 GMT


@CB-Sean Quick-Open is to open files by typing and filtering the file names. This feature works with all type of files and can list all files under a project root. To summarize this feature works only with file system entries.

Quick-Edit on the other hand is a different concept, where without navigating to a file explicitly, you can edit a logical construct (like a CSS selector definition, a javascript function which are named). This feature however in it's current form works only with selector definitions and javascript functions. The distinct reason being availability of parser written in JS for javascript text and CSS text.

If I am not wrong, the feature what you are asking is like a symbol table ( like Visual studio function search across project ) which is not available in Brackets right now. However Brackets does offer symbol table for the current document ( Ctrl+T) but that's limited to CSS and JS.

You can try out a brackets extension called 'brackets-outline' which might be able to give you an outline for PHP as well, but this again works only for the current file.

core-ai-bot commented 2 years ago

Comment by CB-Sean Monday Nov 14, 2016 at 08:47 GMT


@swmitra Maybe I'm using the wrong name then. By 'Quick Open', I mean to open the location of a function (for example in JavaScript) when I'm selecting a function and pressing CTRL-J. I thought it was called Quick Open, but apparently I'm just confusing you all :P Apparently in the menus it's called "Go To Definition". My mistake!