<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[实践OK]sublime vs code显示空格和Tab的配置方法，以及在Mac下MAC下Sublime下如何跳到行首或行尾，  MAC下Sublime如何跳到行首或行尾？ MAC下向后删的方法，可视化列出vim的tab和所有不可见字符。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Tue, 14 Aug 2018 10:16:43 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	一）VSCode的空格设置：<br/>MAC ： Code-&gt;首选项-&gt;设置-&gt;两列右侧的用户设置-&gt;贴上立即新建一个文件就生效：<br/><textarea name="code" class="php" rows="15" cols="100">
&#123;
&quot;editor.renderControlCharacters&quot;: true,
&quot;editor.renderWhitespace&quot;: &quot;all&quot;
&#125;
Windows: 文件-&gt;首选项-&gt;设置-&gt;如下两行，重启VS编辑器生效：
&#123;
&nbsp;&nbsp;&nbsp;&nbsp;&quot;files.autoSave&quot;: &quot;off&quot;,
&nbsp;&nbsp;&nbsp;&nbsp;&quot;git.path&quot;: &quot;D:/Program Files/Git/bin/git.exe&quot;,
&nbsp;&nbsp;&nbsp;&nbsp;&quot;editor.renderControlCharacters&quot;: true,
&nbsp;&nbsp;&nbsp;&nbsp;&quot;editor.renderWhitespace&quot;: &quot;all&quot;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&#125;
</textarea><br/>来自：https://www.jianshu.com/p/e9ee1de056b2 <br/><br/><br/>二）Sublime的空格设置：<br/>Sublime菜单里的preferences.sublime-setting-Default里面的&quot;draw_white_space&quot;: &quot;selection&quot;,复制到preferences.sublime-setting-user,然后改为&quot;draw_white_space&quot;: &quot;all&quot;,之后保存,就行了,别忘了有一个逗号.<br/><textarea name="code" class="php" rows="15" cols="100">
&#123;
&nbsp;&nbsp;&quot;always_show_minimap_viewport&quot;: true,
&nbsp;&nbsp;&quot;bold_folder_labels&quot;: true,
&nbsp;&nbsp;&quot;color_scheme&quot;: &quot;Packages/User/SublimeLinter/Monokai (SL).tmTheme&quot;,
&nbsp;&nbsp;&quot;default_line_ending&quot;: &quot;unix&quot;,
&nbsp;&nbsp;&quot;font_options&quot;:
&nbsp;&nbsp;[
&nbsp;&nbsp;&nbsp;&nbsp;&quot;gray_antialias&quot;
&nbsp;&nbsp;],
&nbsp;&nbsp;&quot;font_size&quot;: 13,
&nbsp;&nbsp;&quot;ignored_packages&quot;:
&nbsp;&nbsp;[
&nbsp;&nbsp;&nbsp;&nbsp;&quot;SublimeLinter&quot;,
&nbsp;&nbsp;&nbsp;&nbsp;&quot;Vintage&quot;
&nbsp;&nbsp;],
&nbsp;&nbsp;&quot;draw_white_space&quot;:&quot;all&quot;,
&nbsp;&nbsp;&quot;indent_guide_options&quot;:
&nbsp;&nbsp;[
&nbsp;&nbsp;&nbsp;&nbsp;&quot;draw_normal&quot;,
&nbsp;&nbsp;&nbsp;&nbsp;&quot;draw_active&quot;
&nbsp;&nbsp;],
&nbsp;&nbsp;&quot;line_padding_bottom&quot;: 3,
&nbsp;&nbsp;&quot;line_padding_top&quot;: 3,
&nbsp;&nbsp;&quot;overlay_scroll_bars&quot;: &quot;enabled&quot;,
&nbsp;&nbsp;&quot;show_encoding&quot;: true,
&nbsp;&nbsp;&quot;theme&quot;: &quot;Default.sublime-theme&quot;
&#125;
</textarea><br/>来自：https://www.cnblogs.com/xiyuan2016/p/8268210.html<br/><br/><br/>三）以及在MAC下Sublime如何跳到行首或行尾？ 使用Command键或者fn键+左/右箭头的组合。<br/><br/><br/>四）MAC下向后删的方法是：Fn+Delete键。<br/><br/><br/>五）Vim里显示末尾空格、换行和Tab设置：<br/><textarea name="code" class="php" rows="15" cols="100">
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
#set listchars=eol:$,tab:&gt;-,trail:~,extends:&gt;,precedes:&lt;
#set list&nbsp;&nbsp;#让上面的设置生效，特别是那个行尾的$符号，在粘贴时麻烦，没有啥鸟用，去掉。但是可以用来鉴别一下Tab还是空格。但可以把行尾去掉$,如下：

set listchars=tab:&gt;-,trail:~,extends:&gt;,precedes:&lt;
set list
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /&#92;s&#92;+$/
match WhitespaceEOL /&#92;t&#92;+/

</textarea><br/>显示 TAB 键 <br/>文件中有 TAB 键的时候，你是看不见的。要把它显示出来：<br/> :set list TAB <br/>显示为 ^I,$显示在每行的结尾,表示换行，Vim 可以用高亮显示空格和TAB。 <br/>如下，上面WhitespaceEOL做了去掉行尾巴的$和把Tab换成&gt;-:<br/>jack^Idjfkdf$<br/>xiang^Idklf$<br/>^I$<br/>$<br/>^I^I$<br/><br/>可视化列出vim的tab和所有不可见字符<br/>在使用vim作为python的编辑器的时候，如果没有处理好空格和tab的关系，或者2者混用的时候，很容易出现缩进导致的错误，怎么避免这种情况的发生呢？<br/><br/>最好在vim的配置文件中将tab直接使用四个空格，这个时候你按下一个tab的时候，实际上插入了4个空格。<br/><br/>set expandtab<br/><br/>set tabstop=4<br/><br/> <br/><br/>那么如果你的代码中有很多的tab和空格的混用，并且tab没有设置，那么就有大麻烦了，想修复这些错误，我们又不知道那些有问题，因为看不见，怎么办，使用<br/><br/>/&#92;t<br/><br/>就可以可视化列出所有的tab了<br/><br/>还有一种方法，其实这种方法是列出不可见字符，比如回车换行字符，tab之类<br/><br/>你可以使用<br/><br/>:set list<br/><br/>查看，如果想取消，使用<br/><br/>:set list!<br/><br/>或者<br/><br/>:set nolist<br/><br/>还可以自定义这些不可见字符显示符号：<br/><br/>:set listchars=eol:$,tab:&gt;-,trail:~,extends:&gt;,precedes:&lt;<br/>例如使用感叹号显示换行：<br/><br/>:set&nbsp;&nbsp;listchars=eol:!<br/><br/>设置完后，再用<br/><br/>:set list<br/><br/>你会发现结束符，tab，前缀，扩展，换行符均显示出来了。<br/><br/>如果只想查看tab的话，那么设置<br/><br/>:set listchars=tab:--<br/><br/>然后使用<br/><br/>:set list<br/><br/>这时候，你只能看到tab被显示出来，其他还是不可见的状态。<br/><br/>来自：http://www.itye.org/archives/2005<br/><br/><br/>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]sublime vs code显示空格和Tab的配置方法，以及在Mac下MAC下Sublime下如何跳到行首或行尾，  MAC下Sublime如何跳到行首或行尾？ MAC下向后删的方法，可视化列出vim的tab和所有不可见字符。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>