mac os x开发_优化Mac OS X进行Web开发

mac os x开发

Like all tools, Mac OS X requires some tweaks before it is optimized for crafting web content. While there are many possible changes to make to the operating system, the first and most basic alteration is also the most important: adding the ability to see the complete name of any file.

与所有工具一样,Mac OS X需要进行一些调整,然后才能针对制作网页内容进行优化。 尽管对操作系统进行了许多可能的更改,但最重要的是第一个也是最基本的更改:增加了查看任何文件的完整名称的功能。

Mac OS X Finder preferencesLike most modern operating systems, OS X hides filename extensions (the
.xxx suffix) to present a “cleaner” appearance. That’s fine if you’re just dragging and dropping icons, but serious development requires you to know the complete name of every relevant resource. Thankfully, the steps to do so in OS X are very simple:

.xxx )以呈现“更干净”的外观。 如果只拖放图标就可以了,但是认真的开发需要您知道每个相关资源的完整名称。 幸运的是,在OS X中这样做的步骤非常简单:

  1. Make sure you are in the Finder environment.

    确保您在Finder环境中。
  2. Tap the near-universal Mac keyboard combination for preferences: ⌘ + ,

    点按几乎通用的Mac键盘组合以获取首选项: ⌘+,

  3. Select the Advanced panel in the Finder Preferences window that appears.

    在出现的“ Finder首选项”窗口中选择“ 高级”面板。

  4. Turn on Show all filename extensions

    打开显示所有文件扩展名

  5. Close the window by tapping ⌘ + W

    点击⌘+ W关闭窗口

That’s it. This simple step eliminates any confusion between .jpg and .jpeg by making the extension for every file visible at every level of the operating system.

而已。 通过使每个文件的扩展名在操作系统的每个级别都可见,此简单的步骤消除了.jpg.jpeg之间的任何混淆。

进一步的步骤 (Further Steps)

There are a few more steps that you can take to make web development work on a Mac easier; these are best done as commands entered from the Terminal.

您还可以采取一些其他步骤来简化Mac上的Web开发工作。 这些最好是从终端输入的命令来完成。

.htaccess) in the Finder: .htaccess ):
defaults write com.apple.finder AppleShowAllFiles TRUE 默认写com.apple.finder AppleShowAllFiles TRUE
Use column view as the default for Finder windows: 将列视图用作Finder窗口的默认视图:
defaults write com.apple.finder FXPreferredViewStyle Clmv 默认写入com.apple.finder FXPreferredViewStyle IRCv
.DS_Store files on network volumes .DS_Store文件
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true 默认写com.apple.desktopservices DSntWriteNetworkStores -bool true
Allow text selection in Preview/QuickLook 允许在预览/快速查看中选择文本
defaults write com.apple.finder QLEnableTextSelection -bool true 默认写com.apple.finder QLEnableTextSelection -bool true

想走得更远吗? (Want To Go Further?)

There are a few free tools I would recommend for web development on the Mac:

对于Mac上的Web开发,我建议使用一些免费工具:

  • SublimeText, as a code editor.

    SublimeText ,作为代码编辑器。

  • ImageOptim, to crush web graphics down to their smallest possible file size.

    ImageOptim ,将网络图形压缩到尽可能小的文件大小。

  • MAMP, to create a local hosting server for your web pages.

    MAMP ,为您的网页创建本地托管服务器。

Raphael Hüni has an excellent in-depth setup guide for setting a Mac for web development.

RaphaelHüni提供了出色的深度设置指南,用于设置Mac进行Web开发。

翻译自: https://thenewcode.com/587/Optimize-Mac-OS-X-For-Web-Development

mac os x开发

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值