Bootstrap 3 WebStorm/PHPStorm Plugin

October 22, 2014 ยท View on GitHub

A WebStorm/PHPStorm plugin containing Bootstrap 3 live templates - lots of live template!

Plugin in action

Feel free to let me know what else you want added via:

Intallation (in three easy steps)

To install the plugin open your editor (WebStorm or PHPStorm) and hit:

  1. File > Settings > Plugins and click on the Browse repositories button.

  2. Search for Bootstrap then right click and select Download plugin.

  3. Finally hit the Apply button, agree to restart your IDE and you're all done!

What's included - contents

CDN

ComponentSnippet code
CDN link (both CSS & JS)bs3-cdn
CDN link (CSS only)bs3-cdn:css
CDN link (JS only)bs3-cdn:js

Templates

ComponentSnippet code
HTML5 Template Layoutbs3-template:html5

Forms

ComponentSnippet code
Formbs3-form
Inline Formbs3-form:inline
Horizontal Formbs3-form:horizontal

Tables

ComponentSnippet code
Tablebs3-table
Bordered Tablebs3-table:bordered
Condensed Tablebs3-table:condensed
Hover Tablebs3-table:hover
Striped Tablebs3-table:striped

Input Fields (Form fields)

Currently Working

ComponentSnippet codeOptions
Text Inputbs3-input:h
Select Inputbs3-select
Checkboxbs3-checkbox
Radiobs3-radio:h
Submitbs3-submit:h

Coming Soon

Note: you can add " :h " to the end of any input field snippet to make it compatible with Bootstrap 3 horizontal forms. E.g.

  • bs3-input:text:h
  • bs3-input:hidden:h
ComponentSnippet codeOptions
Labelbs3-input:label
Text Inputbs3-input:text:h
Email Inputbs3-input:email:h
Password Inputbs3-input:password:h
Hidden Inputbs3-input:hidden:h
Url Inputbs3-input:url:h
Color Inputbs3-input:color:h
Number Inputbs3-input:number:h
Range Inputbs3-input:range:h
Date Inputbs3-input:date:h
Week Inputbs3-input:week:h
Month Inputbs3-input:month:h
Time Inputbs3-input:time:h
Tel Inputbs3-input:tel:h
Search Inputbs3-input:search:h
Reset Inputbs3-input:reset:h
Submit Inputbs3-input:submit:h
Checkbox Inputbs3-input:checkbox:h
Radio Box Inputbs3-input:radio:h
Textareabs3-textarea:h

Alerts

ComponentSnippet code
Alert Box (Default)bs3-alert
Danger Alert Boxbs3-alert:danger
Info Alert Boxbs3-alert:info
Success Alert Boxbs3-alert:success
Warning Alert Boxbs3-alert:warning

Badges

ComponentSnippet code
Badge (Default)bs3-badge
ComponentSnippet code
Breadcrumbsbs3-breadcrumbs

Buttons

Buttons COMING SOON

Note: all button snippets below can have any of the following options append to the end of the snippet *.

  • :danger
  • :default
  • :disabled
  • :info
  • :primary
  • :success
  • :warning

An example:

  • bs3-button:success
  • bs3-large-button:disabled
  • bs3-block-button:warning
ComponentSnippet codeOptions
Buttonbs3-button*
Block Buttonbs3-block-button*
Mini Buttonbs3-xs-button*
Small Buttonbs3-sm-button*
Large Buttonbs3-lg-button*

Grid

Note: The bs3-col snippet can be used both on its own or with the addition of a colon followed by the number of columns required: E.g.

  • bs3-col
  • bs3-col:6
  • bs3-col:12
ComponentSnippet codeOptions
Columnbs3-col:1-12
Rowbs3-row
Containerbs3-container

Icons

ComponentSnippet code
Glyphiconbs3-icon:glyphicon
Icon (Font Awesome)bs3-icon

Images

ComponentSnippet code
Thumbnailbs3-thumbnail
Thumbnail with contentbs3-thumbnail:content

Labels

ComponentSnippet code
Labelbs3-label
Danger Labelbs3-label:danger
Info Labelbs3-label:info
Success Labelbs3-label:success
Warning Labelbs3-label:warning

Pagination

ComponentSnippet code
Pagerbs3-pager
Aligned Pagerbs3-pager:aligned
Paginationbs3-pagination
Pagination:smallbs3-pagination:small
Pagination:largebs3-pagination:large
ComponentSnippet code
Navbar (basic navbar)bs3-navbar
Navbar Brand Elementbs3-navbar:brand
Navbar Buttonbs3-navbar:button
Navbar Formbs3-navbar:form
Navbar Linkbs3-navbar:link
Navbar Textbs3-navbar:text
Navbar Fixed-Bottonbs3-navbar:fixed-bottom
Navbar Fixed-Topbs3-navbar:fixed-top
Navbar Inversebs3-navbar:inverse
Navbar Responsivebs3-navbar:responsive
Navbar Static-Topbs3-navbar:static-top

Jumbotron

ComponentSnippet code
Jumbotron (ex Hero Unit)bs3-jumbotron

Panels

ComponentSnippet code
Panelbs3-panel
Panel (contextual)bs3-panel:{warning,success,info,danger,primary}
Panel (with heading)bs3-panel:heading
Panel (with footer)bs3-panel:footer

List-groups

ComponentSnippet code
List groupbs3-list-group
List group (with badges)bs3-list-group:badges
List group (linked list)bs3-list-group:linked
List group (with content)bs3-list-group:content

Media Objects

ComponentSnippet code
Media Objectbs3-media-object

Clearfix

ComponentSnippet code
Clearfixbs3-clearfix

License

Bootstrap 3 - PHPStorm Plugin is open-sourced software licensed under the MIT license.