Tips for Zend Studio 8

I coded a lot in Zend Studio 5.5.1, the gold old version that’s insanely popular because it made it so easy to code in PHP. As PHP evolves, ZS 5.5.1 gradually falls behind of the edge and it simply becomes imperative that you switch to the latest version ofZend Studio, the 8.

The IDE is built on Eclipse, which I have never used before. It’s great but one still needs some time to learn the curves before he or she can jump in and swim like a whale. Today I gave it a test drive and have some tips to share with you when you are just starting out with Zend Studio 8.

1. Change Default Character Encoding

Before you create your project or editing any existing PHP files, you may need to change the default encoding of the Zend Studio Workspace, or make sure it is what you usually work in.

By default, the encoding is that of the container (your operating system). I’m using a Chinese Windows 7 so the default encoding is GBK and it is everything but good because I primarily develop English projects.

For North America users, the default encoding should be ISO-8859-1. If you open up a file that’s encoded in UTF8 without changing the encoding accordingly, you may end up screwing up the file. And another victim.

To change the default encoding of Zend Studio: Windows –> Preferences –> General –> Workspace –> Text file encoding, switch to “Other” and select the encoding you normally use.

2. Display Function Parameters Hint on Demand

In 5.5.1, function parameters hint is automatically displayed when you place the cursor in the parentheses. However in 8, the hint is only automatically shown after you immediately finish typing the function name. When the focus moves away or you click anywhere else in the window, the hint disappears and if you don’t know the correct shortcut keys, you wouldn’t be able to get it back.

After a few searches, I found out the key combinations to get the parameters hint re-appear: Alt + Shift + /

Some pages say it’s Ctrl + Shift + Space but it didn’t work out for me. Maybe it’s a version thing?

3. Display Potential Function Candidates / Auto-complete Function Names

Along with the previous tip, this one is pretty important in modern IDE because they are essential in boosting one’s coding productivity. Can’t live without them.

When you are typing the function name, Zend Studio would guess what you mean and display a list of possible candidates for you to choose from.

If you want it to appear again, just place the cursor on the function name and use Alt + / to make Zend Studio makes a guess again.

4. Display All Shortcut Key Combinations

You can use a lot of shortcut keys in Zend Studio 8 to make things happen quickly and intuitively, just press Ctrl + Shift + L to bring up the key map to see the full list. Here’s a list of the commonly used commands:

zend studio 8 key assist - commonly used commands

比较高效的快捷键:

快速打开文件:Ctrl+Shift+R

快速找到方法:Ctrl+O

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值