-
1. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
Ben Pleysier Jun 21, 2014 12:17 AM (in response to i7nvd)Have you had a look at this?
-
2. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
Randy Edmunds Jun 22, 2014 11:00 AM (in response to Ben Pleysier)There's an easier way to do this now:
1. Help > Show Extensions Folder, then go up 1 level to the Edge Code CC folder
2. Drag brackets.json file to Edge Code CC to edit it
3. Add this setting: "insertHintOnTab": true
4. Save file
You can see other preferences here: How to Use Brackets · adobe/brackets Wiki · GitHub
Randy
-
3. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
i7nvd Jun 24, 2014 8:33 AM (in response to Randy Edmunds)Hey Randy,
Thanks for this. I tried entering the specified line just before the last curly bracket, and even after a save, exit of Edge Code and relaunch, it still doesn't seem to work... Not sure what I'm doing wrong, but I'd really like this to work. Have you got it working in your copy? Can you provide a copy of your entire brackets.json file for me to paste into mine to make sure my syntax is okay?
- p
-
4. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
Randy Edmunds Jun 24, 2014 1:19 PM (in response to i7nvd)JSON properties are comma separated, so you'll need to put a comma on the end of the previous item.
Or you could add this line after the opening curly bracket (aka brace):
"insertHintOnTab": true,
Randy
-
5. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
i7nvd Jun 24, 2014 1:38 PM (in response to Randy Edmunds)That's what I had done. My brackets.json document starts like this:
{
"insertHintOnTab": true,
"edge-code-kuler.KULER_URLS": "{\"MY_KULER_THEMES\":true,\"FAVORITE_KULER_THEMES\":true,\"POPULAR_KULER_THEMES\":true,\ "RANDOM_KULER_THEMES\":true}",
And then goes on to define other Kuler settings. It's in there, it's saved, yet I'm still just getting tab spacing when I try to autocomplete with tab. I'm not sure what I'm doing wrong, but it's a bit frustrating.
- Paul
-
6. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
Randy Edmunds Jun 24, 2014 3:46 PM (in response to i7nvd)Which version of Edge Code are you running? This relies on the new preferences mechanism, so be sure you're on the latest version.
Randy
-
7. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
i7nvd Jun 24, 2014 4:11 PM (in response to Randy Edmunds)It says I'm running the latest build: experimental build 0.98.0-359086273
I guess this is why it's experimental, huh?
- Paul
-
8. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
Randy Edmunds Jun 24, 2014 8:11 PM (in response to i7nvd)I just added that preference to my Edge Code CC preferences and it works for me.
I'm on Windows 7 -- what OS/version are you on?
Maybe you're referring to something different than I am. I opened an HTML page, put the cursor before the closing '>' of a tag, and inserted a space. This invoked the Code Hints menu with a list of attributes for that tag, I used up/down arrows to select the one I wanted, and then hit Tab key and it was inserted in my page. Does that work for you?
Please provide a recipe for what you are doing, what you are expecting to happen, and what is actually happening.
Randy
-
9. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
i7nvd Jun 25, 2014 8:04 AM (in response to Randy Edmunds)Yes, we are indeed doing different things. I'm trying to get this to work in a CSS file. So for example, I type this:
.testclass {
And then I start to type "text-align". I type "tex" and then "text-align" comes up as a suggestion. That's what I'd like to insert on tab.
- p
-
10. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
Randy Edmunds Jun 25, 2014 8:21 AM (in response to i7nvd)That's only slightly different, but it's still Code Hints, and that scenario also works for me.
Open a Chrome browser window, go to localhost:9235, then click on link to Edge Code -- this takes you to the Developer Tools. Switch to the Console tab and let us know if there are any errors.
Do you have any extensions installed? This article describes how to disable extensions to see if there may be a conflict: Troubleshooting · adobe/brackets Wiki · GitHub
You could also try installing the JSONLint extension to see if there are any syntax errors in your preferences file:
https://github.com/ingorichter/de.richter.brackets.jsonlint
Randy
-
11. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
i7nvd Jun 25, 2014 8:48 AM (in response to Randy Edmunds)Yes, this error pops up a bunch of times in the console log:
ParsingError- message: "Invalid JSON settings at C:/Users/Paul/AppData/Roaming/Adobe/Edge Code CC/brackets.json(SyntaxError: Unexpected string)"
- name: "ParsingError"
- __proto__: Error
- I doesn't seem to say where the error is. Aside from adding this one line, I have done nothing else to the default json file that came with the program.
- - p
-
12. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
Randy Edmunds Jun 25, 2014 10:36 AM (in response to i7nvd)Can you post a copy of your file somewhere and add a link here?
Note: I made a silly error recently when I copied a setting out of an e-mail and I didn't notice that Outlook had converted the double-quote chars to curly quotes (which is not valid -- needs to be single or double quotes). JSON data is essentially JavaScript code, to it has to be very exact.Randy
-
13. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
i7nvd Jun 25, 2014 5:56 PM (in response to Randy Edmunds)I appreciate you looking into this for me, Randy. I did notice the curly quotes and had changed them.
-
14. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
Randy Edmunds Jun 25, 2014 6:13 PM (in response to i7nvd)I found 2 errors (using the JSONLint Extension, btw):
The last line is:
"useTabChar": false, In JSON, commas are *separators*, not *terminators*, so last item cannot have a trailing comma. Delete it.
There is some invalid syntax in the Kuler prefs. Delete all 5 lines that starts with "edge-code-kuler".
HTH,
Randy
-
15. Re: Is there a way to change the autocomplete keyboard shortcut to tab instead of enter?
i7nvd Jun 25, 2014 6:19 PM (in response to Randy Edmunds)Phew! Seems like it's finally working. Thanks for all the help! For anyone else reading this in the future, here's the summary of how this was all resolved:
1. Help > Show Extensions Folder, then go up 1 level to the Edge Code CC folder
2. Drag brackets.json file to Edge Code CC to edit it
3. If you get rid of everything that starts with "edge-code-kuler", you end up with a very clean document that looks something like this:
{
"insertHintOnTab": true,
"UserSurveyReminder": 0,
"DefaultEditorPrompted": true,
"closeBrackets": true,
"useTabChar": false
}
There may be extra bits depending on other preferences, but this is what mine looked like when it was successful. Note opening and closing curly brackets, the lack of curly quotes, and the commas after everything except the last one.
4. Save and close the application and restart.





