Ben*_*Ben 54 macos textmate editor
如何在Mac OS X上将TextMate设置为默认文本编辑器?
我试过了
ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate
export EDITOR='mate -w'
Run Code Online (Sandbox Code Playgroud)
但这不起作用.
Tim*_*out 91
恰到好处(或控制)单击要更改的类型的文件,并且:
"获取信息" - >"打开方式:" - >(选择TextMate) - >"全部更改"
KFu*_*unk 34
通过Finder的方法是不实际的.如果您是开发人员,您的文件可能包括.profile,.gitconfig,.bashrc,.bash_profile,.htdocs等.
执行此操作的最佳方法是使用Bash(对于Sublime Text 3):
defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}'
Run Code Online (Sandbox Code Playgroud)
对于其他文本编辑器,我假设您可以使用正确的字符串替换"com.sublimetext.3".您可以使用Google的文本编辑器名称+"LSHandlerContentType = public.plain-text"来确定应用程序的字符串.
对我来说,这改变了Finder和.的默认值
$ open ~/.bashrc
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
37344 次 |
最近记录: |