any other keymap might not cover all the cases for IntelliJ. Follow these steps to perform this action. Evaluate expression allows to evaluate expression on the fly. We can also view the same information in the Debug window. bad import SmsContainer from './containers/SmsContainer' // bad const HttpRequests = // good import SMSContainer from './containers/SMSContainer' // good const HTTPRequests = // also good const httpRequests = // best import TextMessageContainer from './containers/TextMessageContainer' // best const requests = Ģ3. Beside the advantage mentioned by chalimartines in the comments (more accurate help), the main advantage is to minimize potential conflicts with existing plugins keymaps, which could collide with your new keymap. During debugging, IntelliJ shows value of variable in the Editor window itself. Your filename should be identical to your function’s name. Airbnb JavaScript Style Guide() // in some other file // bad import CheckBox from './checkBox' // PascalCase import/export, camelCase filename import FortyTwo from './FortyTwo' // PascalCase import/filename, camelCase export import InsideDirectory from './InsideDirectory' // PascalCase import/filename, camelCase export // bad import CheckBox from './check_box' // PascalCase import/export, snake_case filename import forty_two from './forty_two' // snake_case import/filename, camelCase export import inside_directory from './inside_directory' // snake_case import, camelCase export import index from './inside_directory/index' // requiring the index file explicitly import insideDirectory from './insideDirectory/index' // requiring the index file explicitly // good import CheckBox from './CheckBox' // PascalCase export/import/filename import fortyTwo from './fortyTwo' // camelCase export/import/filename import insideDirectory from './insideDirectory' // camelCase export/import/directory name/implicit "index" // ^ supports both insideDirectory.js and insideDirectory/index.jsĢ3.7 Use camelCase when you export-default a function.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |