Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Daily Development Tips

Daily Development Tips

here's a few of our favourites tips about programming (editors, console and everything else).

Adam Nowak

May 15, 2015
Tweet

More Decks by Adam Nowak

Other Decks in Programming

Transcript

  1. Editors (themes) • use a cool theme • think about

    dark/light variations • http://colorsublime.com • http://cocopon.me/app/vim-color-gallery/ • https://atom.io/themes • our favourites: • Solarized • Tomorrow Night • Spacegray fonts: • Source Code Pro • Ubuntu Mono • Inconsolata
  2. Editors (file mangement) • fuzzy search • [A] [S]: CMD+P

    / CMD+T • [V] CTRL+P https://github.com/kien/ctrlp.vim • go back to previous file • fuzzy search + enter • split tabs • [S]: CMD+ALT+2 (or more) • [V]: :sp / :vsp • show/hide file tree
  3. Editors (select) • copy and paste • quick find selected

    word • [V]: # • [A] [S]: CMD+e, CMD+g • select all occurrences in file • [A] [S]: CTRL+CMD+g • work with multiple cursors • [A] [S] CMD+SHIFT+l
  4. Editors (line manipulation) • delete line(s) • [A] [S]: CTRL+SHIFT+k

    • [V]: dd • join lines • [A] [S]: CMD+J • [V]: J • move line(s) up/down • [A] [S]: CTRL+CMD+up/ down • go to the end of line • [A] [S]: CMD+right • [V]: $ • go to the beginning of line • [A] [S]: CMD+left • [V]: ^ • move cursor left/right by word • [A] [S]: ALT+left/right • [V]: b / w, B / W
  5. Editors (search) • search everywhere • [A] [S]: CMD+SHIFT+f •

    quick change search word: CMD+d, CMD+e • [V]: Ag https://github.com/rking/ag.vim
  6. Editors (ctags) • go to definition • [A] [S]: CMD+SHIFT+down

    • [V]: CTRL+] • https://github.com/SublimeText/CTags • http://ctags.sourceforge.net/
  7. Editors (other) • go to file on github • https://github.com/tpope/vim-fugitive

    • https://github.com/ehamiter/ST2-GitHubinator • showing modified lines • git gutter
  8. Editors (plugins) • Vim • https://github.com/gmarik/Vundle.vim • https://github.com/kien/ctrlp.vim • https://github.com/scrooloose/nerdtree

    • https://github.com/tomtom/tcomment_vim • Sublime • https://netguru.co/blog/sublime-text-plugins-development • https://netguru.co/blog/11-sublime-plugins-html-developers
  9. Shortcuts (1) • cmd + a - początek linii •

    cmd + e - koniec linii • cmd + w - usunięcie wyrazu • cmd + f - forward word • cmd + b - back word • up - history or search • cmd + r - search in history
  10. fzf

  11. navigating between tabs • CMD+ALT+left/right • CMD+SHIFT+[ / ] •

    CMD+1/2/3/… • split • CMD+D • toggle: CMD+[ / ]
  12. Chrome • tab wrangler - https://chrome.google.com/webstore/detail/tab-wrangler/ egnjhciaieeiiohknchakcodbpgjnchh • ublock -

    https://chrome.google.com/webstore/detail/ublock-origin/ cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=pl • github notifier - https://chrome.google.com/webstore/detail/github-notifier/ lmjdlojahmbbcodnpecnjnmlddbkjhnn • momentum - https://chrome.google.com/webstore/detail/momentum/ laookkfknpbbblfpciffpaejjkokdgca • postman - https://chrome.google.com/webstore/detail/postman-rest-client- packa/fhbjgbiflinjbdggehcddcbncdddomop • json view - https://chrome.google.com/webstore/detail/jsonview/ chklaanhfefbnpoihckbnefhakgolnmc
  13. Cool small tools • Owly - sleep prevention • https://itunes.apple.com/us/app/owly-sleep-

    prevention/id882812218?mt=12 • Copy/paste manager • http://www.clipmenu.com/ • Markdown editor • MacDown
  14. Stay healthy • drink water • do breaks • try

    pomodoro • don’t forget to eat • and eat away from the computer • use f.lux
  15. Communicate properly • be asynchronous • if you need an

    answer, please provide as much detail as possible • don’t wait with “hi” (and nothing more) until someone responds • use CC in emails • don’t use private channels - everybody loses • not all notifications are important - beware of distractions