Guest User

Untitled

a guest
Feb 23rd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. ### Source code awal
  2. ```
  3. $table->string('type');
  4. $table->string('name');
  5. $table->text('description');
  6. $table->text('data_sources');
  7. $table->integer('created_by');
  8. ```
  9.  
  10. ### Hasil yang diinginkan
  11. ```
  12. 'type', 'name', 'description', 'data_sources', 'created_by'
  13. ```
  14.  
  15. ### 1) Normalin indentasi
  16. Select all (`ctrl+a`) -> geser ke kiri (`shift+tab`)
  17. ```
  18. $table->string('type');
  19. $table->string('name');
  20. $table->text('description');
  21. $table->text('data_sources');
  22. $table->integer('created_by');
  23. ```
  24.  
  25. ### 2) Manfaatin multiple cursors
  26. Select all (`ctrl+a`) -> aktifkan multi cursors (`ctrl+shift+l`).
  27. Mulai hapus dari akhir baris sampai penutup kurung.
  28. ```
  29. $table->string('type'
  30. $table->string('name'
  31. $table->text('description'
  32. $table->text('data_sources'
  33. $table->integer('created_by'
  34. ```
  35.  
  36. ### 3) Pindah cursor satu kata
  37. Gunakan (`ctrl+←`) untuk pindah satu kata ke kiri.
  38. Gunakan (`ctrl+shift+backspace`) untuk menghapus dari cursor sampai awal baris.
  39. ```
  40. 'type'
  41. 'name'
  42. 'description'
  43. 'data_sources'
  44. 'created_by'
  45. ```
  46.  
  47. ### 4) Pindah cursor ke akhir baris, modify
  48. Maksimalkan tombol `home` atau `end` untuk pindah ke awal/akhir baris dengan cepat. Tambahkan koma, lalu delete.
  49. ```
  50. 'type', 'name', 'description', 'data_sources', 'created_by',
  51. ```
Add Comment
Please, Sign In to add comment