私はTextmate version 2 fro MAC
かなり前から使用してきましたが、突然昨日コードファイルに が表示され、<CR> tag
何が問題なのかわかりません。グーグルで調べた後、それは目に見えない文字であるはずであることがわかりました。
しかし、どうすればそれを削除できますか、誰でもアイデアを提案できますか?
Textmate ファイルは、3 つのオプションのいずれかで設定されます。
CR
(例: キャリッジ リターンまたは\r
) 行末。LF
(例: 改行または\n
)CRLF
(例: キャリッジ リターン ライン フィード または\r\n
)ファイルの行末に一貫性がない場合、Textmate は\n
行末マーカーとして扱い<CR>
、テキストとして表示します。
この問題は Launch Services データベースの破損が原因で発生し、ターミナルで次のコマンドを実行して Finder をリセットすることで解決できます。
sudo /System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder
lsregister: [OPTIONS] [-domain { system | local | user | network }]... [path]...
Search the paths for application bundles and add each found item to the Launch
Services database. For domain specifications, ask CF for the list of application
locations in the given domain(s).
-kill Reset the global Launch Services database before doing anything else
-lint Print information about plist errors while registering bundles
-convert Register apps found in older LS database files
-load Load the LaunchServices service plugin if it's not already loaded.
-lazy n Sleep for n seconds before registering apps if the local cache
is aleady populated.
-r Recursively register directory contents, do not recurse into
packages or invisible directories.
-R Recursively register directory contents, including the contents
of packages and invisible directories.
-f force-update registration info even if mod date is unchanged
-v Display progress information.
-dump Display full database contents after registration.
-h Display this help.