Gru*_*ber 20 copy-paste line tabular sublimetext2
我必须在html页面中设置一个title/authors项目列表,每个标题/作者行都在<li>这里:
<ul>
<li> title name - <em>author name</em></li>
<li> title name - <em>author name</em></li>
<li> title name - <em>author name</em></li>
and so on...
</ul>
Run Code Online (Sandbox Code Playgroud)
他们给了我一个包含两列的Excel文件,一列用于标题,一列用于作者,大约90-100行.
获得<li>如上所述的列表的最佳和最快捷方式是什么?(我使用Sublime Text 2)
只需在Sublime Text 2中复制/粘贴,每个标题/作者行都有一个单独的行,就像这样
title name author name
title name author name
title name author name
Run Code Online (Sandbox Code Playgroud)
没有其他的..
我可以轻松地将<li>thx中的每一行包裹到:
<em>s作者.
|为光标):
*copy* authors name as single lines
|author name1
|author name2
|author name3
|author name4
*paste* authors as single line each where the cursor "|" stands
<li>title name - <em> |author name1 </em></li>
<li>title name - <em> |author name2 </em></li>
<li>title name - <em> |author name3 </em></li>
<li>title name - <em> |author name4 </em></li>
Run Code Online (Sandbox Code Playgroud)
不幸的是,实际发生的事情(在崇高文本2中)是这样的:
<li>title name - <em> |author name1
author name2
author name3
author name4 </em></li>
<li>title name - <em> |author name1
author name2
author name3
author name4 </em></li>
<li>title name - <em> |author name1
author name2
author name3
author name4 </em></li>
<li>title name - <em> |author name1
author name2
author name3
author name4 </em></li>
Run Code Online (Sandbox Code Playgroud)
所有复制的行只是粘贴在每个光标的块中
Ric*_*tti 46
您可能只需要验证复制到剪贴板的行数是否与使用CMD+ SHIFT+ 拆分的行数相匹配L.
如果它们匹配,Sublime Text会按预期运行,将每个源行复制到每个目标行(至少在我的机器上... :).
| 归档时间: |
|
| 查看次数: |
17439 次 |
| 最近记录: |