当前位置:网站首页>How to start the hidden preferences in coda 2 on the terminal?

How to start the hidden preferences in coda 2 on the terminal?

2020-11-06 21:19:00 Mac dingdong

Coda2 for Mac Is a text editor , Code folding Automatic completion of project scope . Quickly find and replace . Indentation guide Auto tag off . Quick comments and code transfers . Sometimes , We have a situation , That's to add hidden preferences . Hidden preferences enable us to implement important settings for a small but important minority of users who need them , At the same time, make other people's UI Less complexity .

One of the main problems with hiding preferences is : They're hidden . You won't find them on your own , Until now, , It hasn't been recorded anywhere yet .

To set any of the following preferences , Please start your favorite terminal application ( Or just in “ Applications ” Of “ Utilities ” In folder terminal Applications ), Paste one of the commands listed below , Then press Return key .

like this :

My-iMac:~ panic_user$ defaults write com.panic.Coda2 SingleLineComments YES
My-iMac:~ panic_user$ █

Enable / Disable features

defaults write com.panic.Coda2 KnightRider -bool True

Regardless of the system appearance settings , Always use dark mode . Be careful : This needs to be macOS 10.14(Mojave) Or later .

defaults write com.panic.Coda2 SingleLineComments YES

Always use single line comments ( Use a language that supports single line and multi line annotations ).

defaults write com.panic.Coda2 RenderTabThumbnails -bool False

prevent Coda Try to generate a thumbnail of the document you are currently working on for use in the tab bar .( If your page uses plug-ins or heavy scripting or auto play media , It will be useful .)

defaults delete com.panic.Coda2 dont.ask.again.result.publishConfirmation

When publishing the website , Please bring back the confirmation form ( If you have previously hidden it ).

defaults write com.panic.Coda2 StringLengthToStopHighlightingAndWrapping -int 300000

Coda Automatically disable syntax highlighting and word wrapping for large documents . You can change the threshold here , Set in characters .( The default value is 1224000.)

defaults write com.panic.Coda2 EditorLineHeight X

Adjust editor line height . Put... In the order above X Change to greater than 0 Any number of , Including decimals ( for example “ 2.5”). You need to use this value to find the desired setting . Start with something smaller , for example 2 or 3, Then add as needed .

Override operating system defaults

defaults write com.panic.Coda2 UseGlobalFindPasteboard NO

Exit system wide find pasteboard sharing . If you don't want “ lookup ” The operation appears in Coda Of “ lookup / Replace ” In the banner , Please use this option .

defaults write com.panic.Coda2 AppleLanguages "('en-US')"

Set in the Coda The language used in , At the same time, keep the system language unchanged .

Additional logs for debugging

 

That's the answer for you today “ How to start at the terminal Coda 2 Preferences hidden in ” I hope it will be of some help to you .

defaults write com.panic.Coda2 SiteIndexLoggingLevel -int 3

Write other log records to the console , In pairs Coda The website index for troubleshooting .

defaults write com.panic.Coda2 UseVerboseLogging 1

Write other log records to the console , To troubleshoot remote server connections .

defaults write com.panic.Coda2 DebugLogging -bool YES

Write other log records to the console to solve Panic Sync problem

版权声明
本文为[Mac dingdong]所创,转载请带上原文链接,感谢