Skip to content

Instantly share code, notes, and snippets.

@MatrixFrog
Created July 3, 2010 05:00
Show Gist options
  • Save MatrixFrog/462326 to your computer and use it in GitHub Desktop.
Save MatrixFrog/462326 to your computer and use it in GitHub Desktop.
Eclipse template for showing a Toast
Eclipse template for showing a Toast. To use it, type ctrl+space, then "toast", then enter.
Or, select a String or string ID, type ctrl+space, then end, then enter.
Window > Preferences > Java > Editor > Templates
Name: Toast
Context: Java Statements
Description: Create and show a Toast (Android)
Pattern: Toast.makeText(this, ${word_selection}${}, Toast.LENGTH_SHORT).show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment