に交換してください。しかし、私がラインをハイライト表示して、.
の検索/置換を行うと、すべて.
が、選択した行のものだけでなく、「Find in selection "ボタンをクリックします。これはバグですか?他のエディタでは、テキストの塊を選択してから検索/置換を行うと、選択したブロック内の一致のみを検索/置換します。私はVSCodeで編集していたファイルに次の行を持って見つけて、Visual Studioのコード
以下は、問題を再現できるスニペットです。 ...............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を使用しています。
この場合は正規表現でやりとりできますが、過度のようです。そして、一般的なケースでは、もっと真っ直ぐな前方発見/置換ツールが役に立つと思います。 git hubページで問題を開くかもしれません。 – Adam
問題を開いておくとよいでしょう。私はVSCodeとSublimeの両方が、このような簡単な作業のためにこれらのフープを飛び越えることに驚くことがあります。たとえば、私の答えで上記の項目3と項目4を反転することはできません。これはエラーや欲求不満の傾向にあるようです。 – Mark
問題が開かれました:https://github.com/Microsoft/vscode/issues/27083彼らは修正を伴って出てくるならば答えを掲示するだろう。 – Adam