-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] Make code hint insertion on tab key configurable #4684
Comments
Comment by RaymondLim Done initial review. just 2 minor nits. |
Comment by iwehrman I fixed both of these issues, so this is ready for re-review. Thanks for the quick turnaround! |
Comment by RaymondLim
|
Comment by iwehrman Whoops again. Sorry about that. Commits are pushed now. |
Comment by RaymondLim Looks good... Merging. |
Issue by iwehrman
Thursday Sep 05, 2013 at 23:23 GMT
Originally opened as adobe/brackets#5084
Addresses #4963 by making the behavior of the
CodeHintList
on tab key events configurable on a global and per-CodeHintProvider
basis. TheCodeHintManager
provider registration API is generalized with an additional optional property,insertHintOnTab
, that indicates whether theCodeHintManager
should request that the provider of the current session insert the currently selected hint on tab key events, or if instead a tab character should be inserted into the editor. If a provider omits this property, the behavior is determined by theCodeHintManager
. The default behavior is to insert a tab character into the editor, as is the case now. The default can be changed globally with the newCodeHintManager.setInsertHintOnTab(bool)
method. For an example use of this method, see my awesome new extension: iwehrman/brackets-insert-hint-on-tab.This was
@
peterflynn's idea!iwehrman included the following code: https://github.com/adobe/brackets/pull/5084/commits
The text was updated successfully, but these errors were encountered: