:: My another contributions in Delphi

»Delphi3000.com
posting and uploading delphi articles
[currently as Top 66 uploader]


»Komunitas Delphi Indonesia
starting as a member

Thursday, October 26, 2006

:: Delphi IDE's Shortcuts #2

» Block Code Vertically

Untuk Highlight/blok code per baris tentunya para delphiers tidak ada

kesulitan / sudah tau semua kan, kan tinggal menekan tombol [shift]
yang diikuti tombol kursor bawah atau atas.

Nah kalo kita mau highlight/blok code secara kolom bisa atau tidak ?
Misalnya kita mau copy blok code tertentu tetapi tidak mau
menyertakan indentasi yang ada pada blok code tersebut ?

Nah, ini ada caranya :
1. Aktifkan dulu mode highlight/block per kolom-nya dengan menekan
tombol [Ctrl+O+C] (ctrl + huruf O (bukan nol) + huruf C)
2. Silahkan menekan tombol arah kanan/kiri untuk mengubah lebar kolom
yang hendak dihighlight/blok
3. Silahkan kalau mau di copy/cut blok code tersebut.
4. Untuk mengembalikan mode highlight/blok code-nya ke mode per baris
tekan tombol [Ctrl+O+L] atau clik mouse dimana saja.

Sekian dulu tips nya.
Semoga berguna

[diambil dari milis delphierscafe@yahoogroups.com]


:: Delphi IDE's Shortcuts #1

Maybe this post can help you to code more efficiently with Delphi's IDE
Here is the list : (I use Delphi 7)

o> Bookmarking
a. Mark =>
[Ctrl]+[Shift]+[0|1|2|...|9]
or
[Ctrl]+[k]+[0|1|2|...|9]
b. UnMark =>
[Ctrl]+[Shift]+[0|1|2|...|9]
or
[Ctrl]+[k]+[0|1|2|...|9]

o> Change code capitalization
a. Lower Case : [Ctrl]+[k]+[o] { o not zero (0) }
b. Upper Case : [Ctrl]+[k]+[n]

How to use :
1. Select the code
2. Press [Ctrl]+[k]+[n]
3. Now, the code has changed to its upper case

o> Make block indentation
1. Select block of code
2. Press [Ctrl]+[k]+[i]

o> Remove block indentation
1. Select block of code
2. Press [Ctrl]+[k]+[u]

o> Jumps to code declaration
1. Move to code implementation
2. Press [Ctrl]+[Shift]+[up arrow]

o> Jumps to code implementation
1. Move to code declaration
2. Press [Ctrl]+[Shift]+[down arrow]

o> Macro :
a. Start recording : [Ctrl]+[Shift]+[r]
b. Stop recording : [Ctrl]+[Shift]+[r]
c. Play macro : [Ctrl]+[Shift]+[p]