我在VSCode中编辑的文件中有以下行:
...............111.........111.............111..
我想.用0s 替换所有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 …Run Code Online (Sandbox Code Playgroud)