我在VSCode中编辑的文件中包含以下行:
...............111.........111.............111..
我想.
用0
s 替换所有。但是,当我突出显示行并为.
s 查找/替换时,文档中的所有.
s都会被替换,而不仅仅是我选择的行中的s,即使我切换“查找选择”按钮也是如此。这是一个错误吗?在其他编辑器中,如果我选择了一段文本然后执行查找/替换,则它将仅在所选块内查找/替换匹配项。
下面是一个片段,您应该可以重现该问题。该...............111.........111.............111..
行在test_unicode
函数内部。
def test_simple2(self):
"""Simple CSV transduction test with empty fields, more complex idx, different pack_size.
100011000001000 ->
..........111....................111..........11111..........111..
"""
field_width_stream = pablo.BitStream(int('1000110001000001000', 2))
idx_marker_stream = pablo.BitStream(int('11101', 2))
pack_size = 4
target_format = TransductionTarget.JSON
csv_column_names = ["col1", "col2", "col3", "col4", "col5"]
pdep_marker_stream = pablo.BitStream(generate_pdep_stream(field_width_stream,
idx_marker_stream,
pack_size, target_format,
csv_column_names))
self.assertEqual(pdep_marker_stream.value, 63050402300395548)
def test_unicode(self):
"""Non-ascii column names.
Using UTF8. Hard coded SON boilerplate byte size should remain the same, column name
boilerplate bytes should expand.
100010010000000 ->
2 + 4 + 9 2 + 4 + 6 2 + 4 + 7
...............111.........111.............111..
"""
field_width_stream = pablo.BitStream(int('100010001000', 2))
idx_marker_stream = pablo.BitStream(1)
pack_size = 64
target_format = TransductionTarget.JSON
csv_column_names = ["한국어", "中文", "English"]
pdep_marker_stream = pablo.BitStream(generate_pdep_stream(field_width_stream,
idx_marker_stream,
pack_size, target_format,
csv_column_names))
self.assertEqual(pdep_marker_stream.value, 1879277596)
我在Ubuntu 16.04中使用VSCode 1.12.2。
我能够使它正常工作,但是工作流程很差:
它可以工作,但是您必须为每个新选择重新遍历工作流程(当然CTR+ 除外H)。顺便说一句,我在Sublime Text中具有完全相同的行为。
您可以使用regExp查找行吗?它们仅包含。和1吗?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句