Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

If I type "(" it completes it like this "()" so is there a way of changing it so that it completes as "( )"
Started by Coder101 Mar 20 2017 01:55 AM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Coder101

[GLOBAL: userInfoPane.html]
Coder101
  • Enthusiast

  • 86 posts
  • Corona SDK

If I type "(" it completes it like this "()" so is there a way of changing it so that it completes as "(   )"



[TOPIC: post.html]
#2

Perry Clarke

[GLOBAL: userInfoPane.html]
Perry Clarke
  • Moderator

  • 820 posts
  • Corona Staff

As with also most anything in Sublime Text relating to customization, the answer is yes :)

  1. Go to Sublime Text ▶ Preferences ▶ Key Bindings (a two pane tab will open with the default key bindings on the left and the user key bindings on the right)
  2. In the left panel, search for ["("] (this is the key binding for left parenthesis and defines how the editor handles this key)
  3. Copy the entire entry between the outer curly braces and paste it into the right hand pane between the square brackets
  4. In the copy, change {"contents": "($0)"} to {"contents": "( $0)"} (note the added space) 

This procedure assumes an up-to-date installation of Sublime Text 3.  Do a search for "sublime text key bindings" for lots more info on the topic.




[topic_controls]
[/topic_controls]