-1

How can I import, lets say 1000 lines, from a CSV file into Sublime?

I cannot find any settings in Sublime that let me perform this action. I do not want to import the whole file, since it will take a considerable amount of time.

Snow
  • 1,058
  • 2
  • 19
  • 47

1 Answers1

0

This is not possible, SublimeText can't open 'half' a file.

I've faced the same issue, ended up with splitting the large file into multiple files, and opening the one I needed;

# Split large file in small files containing 10000 lines
split -l 10000 mylargefile.csv
0stone0
  • 34,288
  • 4
  • 39
  • 64
  • Ah I see. I thought maybe it had a feature like IntelliJ, where it only displays the first 1000 lines if the file is too large. – Snow Apr 08 '20 at 10:13
  • 1
    The best you could do in this regard is a plugin that manually loads in only part of the file, but there's no way for a plugin to prompt you for a file to open without actually opening it in Sublime at the same time (and it would have to try and put the changes back on save manually as well). – OdatNurd Apr 08 '20 at 13:30