Skip to content

Instantly share code, notes, and snippets.

@mikamboo
Last active December 17, 2015 05:29
Show Gist options
  • Save mikamboo/5558113 to your computer and use it in GitHub Desktop.
Save mikamboo/5558113 to your computer and use it in GitHub Desktop.
Eclipse usefull shortkuts.

Eclipse shortcuts

  • Format code

  • Ctrl+Shift+F to invoke the Auto Formatter
  • Ctrl+I to indent the selected part (or all) of you code.
  • Refractor

  • Alt+Shift+R to refractor code or files
  • F2 to refractor a file
  • Navigate

  • Ctrl+Shift+P to jump to closing brace
  • Samples code template

In Window -> Preferences -> PHP -> Editor -> Templates add a new code tpl :

Write in file

      $$fp = fopen(CHEMIN_APPLI."/"."${function_container}.txt", 'a+');
      fputs($$fp, print_r(${variable}${cursor}, true)."\n");
      fclose($$fp);

Echo formated var

      echo("<pre>"); print_r(${});
      ${cursor}
  • Shortcut : "bebug" + Ctrl+Space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment