我刚刚发现TeXShop应该有这个功能,如第节所述1.16 自动完成本手册的。现在,默认情况下我应该有 的自动完成功能"
,它应该被 替换``#SEL##INS#''
,对于 ,应该用 替换,^
等等^{#SEL##INS#}
。
这些替换的规则autocompletion.plist
以如下方式包含在文件中:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!--
Advanced users can change the default auto completions with this file.
The file format is very simple. Each entry is a pair. The first entry is the character
to be modified. The second entry is the string which will replace it. If this string
contains #SEL#, then this string should replace the current selection; otherwise it
will be added to the current selection. If the string contains #INS#, then the cursor
will be placed at this location.
For example, the character ^ is replaced by ^{ } and the cursor is placed between
these brackets using the pair
<key>^</key>
<string>^{#SEL##INS#}</string>
-->
<dict>
<key>"</key>
<string>``#SEL##INS#''</string>
<key>^</key>
<string>^{#SEL##INS#}</string>
<key>_</key>
<string>_{#SEL##INS#}</string>
%... and so on %
问题是,如果我在 TeXShop 编辑器上输入"
, , ^
,_
则无法获得正确的替换,事实上,我根本无法获得自动完成功能。有人知道为什么吗?我该如何解决这个问题?