Created
June 2, 2016 19:04
-
-
Save tylermcginnis/0089ee0942d44e615098f83b01e1ce4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auto_complete_commit_on_tab": true, | |
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme", | |
"draw_white_space": "all", | |
"font_face": "Fira Mono", | |
"font_size": 20, | |
"tab_size": 2, | |
"theme": "Brogrammer.sublime-theme", | |
"translate_tabs_to_spaces": true, | |
"trim_automatic_white_space": true, | |
"trim_trailing_white_space_on_save": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@botmaster @JimmyLv and anyone else using Intellij, you can use Live Templates to achieve the same thing as Sublime's snippets.
Info here:
https://blog.jetbrains.com/webstorm/2018/01/using-and-creating-code-snippets
and all available variables (including filename and filename without extension) here:
https://www.jetbrains.com/help/idea/live-template-variables.html
As an example, you can set up a Live Template for a React Native Functional Component by going to Preferences > Editor > Live Templates and creating a new Template Group (I called mine React Native) and then a new Live Template in that group. The abbreviation is
rnccf
, description is whatever you want, and the "Template text" is as follows:$ComponentName$
creates a variable, which you edit by clicking "Edit variables". Make the "Expression" for this variablefileNameWithoutExtension()
, and then define the available contexts by clicking "Define" below the template text. It's a similar process for creating the other snippets.