News for hackers. Stuff that matters.
Re:Sublime Text 3 dev build 3128 released by bpicolo on Wednesday April 12, 2017 @11:53AM (#14098882)
I actually switched to VS Code vs Sublime for most tasks just recently. It has a few quirks (looking at you, files that just close for no reason) and isn't quite as quick, but the language/debugging packages and support are just leagues better.
Re:Sublime Text 3 dev build 3128 released by jdi on Wednesday April 12, 2017 @03:27PM (#14100939)
> ... files that just close for no reason)

Do you mean if you select (preview) a file from the tree browser on the left, the file appears, but if you select another one, it goes away ?

Use this setting/preferrence:

"workbench.editor.enablePreviewFromQuickOpen": false,

Re:Sublime Text 3 dev build 3128 released by tedmiston on Thursday April 13, 2017 @10:50AM (#14107404)
Or double click to fully open them.
Re:Sublime Text 3 dev build 3128 released by parthdesai on Wednesday April 12, 2017 @12:12PM (#14099070)
I only go back to sublime when i have to open really large files. Apart form that, couldn't be more happier with VS Code.
Re:Sublime Text 3 dev build 3128 released by mos_basik on Wednesday April 12, 2017 @01:00PM (#14099532)
...as a sublime user, I go back to vim when I have to open really large files.

I've never used vscode, but this makes me wonder how small a file has to be for vscode to manipulate it quickly.

Re:Sublime Text 3 dev build 3128 released by educar on Wednesday April 12, 2017 @01:17PM (#14099699)
I have had better luck with sublime when opening very very long lines (think 56k chars). This comes from a sqldump. Even vim was not up to the task.
Re:Sublime Text 3 dev build 3128 released by mos_basik on Wednesday April 12, 2017 @03:30PM (#14100965)
My case was also a sqldump, actually. I forget what I eventually did. I think it had to do with hitting Ctrl-C to stop the entire file from loading up front, and only load the page I was looking at.

The link to this SO question was purple when I Googled this just now: http://stackoverflow.com/questions/908575/how-to-edit-multi-...

In retrospect, I do remember also messing around with disabling syntax highlighting and splitting the file up into more manageable chunks that I loaded into separate buffers.

For my purposes, I was trying to delete certain portions of the dump - so vim was the perfect tool to do something like "delete everything from line 850 to the next time this regex is matched", with a minimum of scrolling around and rendering things unnecessarily. iirc, Sublime just locked up and refused to scroll.

I wonder if I could have used Vintage to do what I wanted in Sublime?

Re:Sublime Text 3 dev build 3128 released by lloeki on Wednesday April 12, 2017 @01:42PM (#14099905)
vim might very well be if it turns out you had syntax on. I've yet to have vim fail on me as long as I skip the pretty colours for big files. Then again I've had very long lines indeed but can't tell if they were that long.
Re:Sublime Text 3 dev build 3128 released by taude on Wednesday April 12, 2017 @04:40PM (#14101537)
You wouldn't use VSCode to edit one off files. You'd use VSCode when you want to mount a "project" folder, and then access the files within that.

You "can" open one-off files from the command line. It's just way slower than other methods if you're just doing a quick change, and you'd go mad waiting for the file to open.

Re:Sublime Text 3 dev build 3128 released by lobster_johnson on Wednesday April 12, 2017 @06:16PM (#14102245)
"Files that just close": Ironically, VSCode adopted that feature from Sublime, and it works exactly the same. They're "preview" tabs, which you can recognize by the fact that the title is rendered in italics. You can make the tab permanent either by editing the file, or by hitting Cmd-K-E (on macOS, no idea about other OSes).
Re:Sublime Text 3 dev build 3128 released by simlevesque on Wednesday April 12, 2017 @12:17PM (#14099121)
> files that just close for no reason

I never experienced this, which type of files ?

Re:Sublime Text 3 dev build 3128 released by bpicolo on Wednesday April 12, 2017 @12:31PM (#14099251)
I actually looked into it a bit more. This may have been the fault of the default "workbench.editor.enablePreviewFromQuickOpen": true, as quick open is literally the only file opening mechanism I use (I assume, if that's cmd+p). Weird default. I turned it to false, maybe that will fix the closing-files issue.

Now if only I can get it to stop automatically closing quotes during comments and ruining my english contractions:

// it' => // it''

Any way around that? :(

Re:Sublime Text 3 dev build 3128 released by tedmiston on Thursday April 13, 2017 @10:53AM (#14107436)
This sounds like a bug or bad setting. I'm able to type contractions in comments in Sublime without it auto inserting a closing quote. Perhaps try reverting to default settings for a moment.
Re:Sublime Text 3 dev build 3128 released by pikzen on Wednesday April 12, 2017 @01:15PM (#14099687)
"editor.autoClosingBrackets": false

Unfortunately, that also turns off all bracket matching.

Re:Sublime Text 3 dev build 3128 released by bpicolo on Wednesday April 12, 2017 @01:35PM (#14099842)
Yeah, I saw that, that's no good. I like it 98% of the time :)
Re:Sublime Text 3 dev build 3128 released by Haitischmock on Wednesday April 12, 2017 @08:43PM (#14103099)
Files that close for no reason is caused by preview mode, which can easily be turned off in the settings. Otherwise you need to double click or edit the file for it to remain open.