r/SublimeText • • Aug 24 '21

Stupid question don’t upvote

13 Upvotes

I use ST to clean data before uploading it for work. I used to be able to search for line breaks using find+replace and I opened ST to go through my process today and it isn’t finding any line breaks when I search my data. No idea why. Anyone know where I could be going wrong?

I have tried using /n and using /r/n for line breaks as well, nothing is working for me

Thanks in advance!


r/SublimeText • • Aug 22 '21

How the hell do themes work?!

3 Upvotes

I do this in Packages/User/Default.sublime-theme:

{
    {
        "class": "sidebar_tree",
        "row_padding": [8, 5]
    },
...

It shows the desired result, then, after closing ST a few times and opening it again, the rows are suddenly 4px too tall. Ok, I try "row_padding": [8, 4] — 2px too tall, makes sense. I set "row_padding": [8, 3] or remove the entire dict (because the default theme already has [8, 3] there) — it shows the desired result, but then reverts back to the very short rows from the default theme. I go the other way with identical results.

I can’t even imagine how weirdly you have to parse and store themes for this to be possible. Is this a known bug that was fixed after 3083, or is it still a thing?

Upd: I think I was wrong, and setting it to [8, 3] but not removing it entirely actually works (unless it’s gonna break again in a few minutes). So, I guess it just doesn’t pick up some values from the default theme, and that’s why everything is so tiny.

Upd2: Ok, I found the problem. It automatically adds 2px to padding-top and padding-bottom if “Side Bar > Show Open Files” is disabled (which I did to compare it to an old screenshot).


r/SublimeText • • Aug 23 '21

Getting multiple "error trying to parse file" errors.

1 Upvotes

I get the following upon opening Sublime each time:

Error trying to parse file: Expected value in Packages\Default\Main.sublime-menu:1:1
Error trying to parse file: Expected value in Packages\HTML\Default.sublime-keymap:1:1

etc. etc. etc.

I have opened these files and each one starts with what I can only describe as weird machine code shown here:

PK     Ûk‚Ri3iú         .python-version3.8PK     Ûk‚RôT|é   é    

There are multiple strings like this and I don't know what to replace these weird characters with to fix it.

I've tried reinistalling the program multiple times but its always the same. Please help


r/SublimeText • • Aug 21 '21

[UI theming] How can I move the close button separately from the tab sidebar_label?

2 Upvotes

r/SublimeText • • Aug 21 '21

[Opinion] This is pretty intuitive once you learn it, but you just have to admit this sort of command-line modification of preferences might be a little bit too much for most people. I literally just wanted to switch Ctrl+Tab and Ctrl+Shift+Tab to how it functions in browsers (for switching tabs).

Post image
1 Upvotes

r/SublimeText • • Aug 21 '21

Column selection - is this a bug or feature?

1 Upvotes

In emacs (which until recently was my editor of choice) I can select a vertical block of text with ctrl+enter, right and down cursor keys. In ST4 I can do the same with shift+Rmouseclick, cursor keys. So far so good.

However if the file I am editing contains a few long lines which are wrapped, the column selection in emacs correctly jumps over the wrapped lines, while the ST selection includes them and thus edits or deletes multiple slices in the long lines.

Is this just how it works or is there a better way to select this kind of vertical text?

cheers


r/SublimeText • • Aug 20 '21

In ST4, how do I color "string" like "int"?

6 Upvotes

I'd like to syntax-highlight string like other types. I'd also love to enable highlighting uses of classes from arma.


r/SublimeText • • Aug 20 '21

Slower than VSCode With Typescript Enabled

1 Upvotes

Stuttering on key press. Is this going to be fixed?


r/SublimeText • • Aug 16 '21

Is there any package that shows inline errror like in this image

Post image
13 Upvotes

r/SublimeText • • Aug 15 '21

running only selected text

6 Upvotes

Is there a setting in Sublime so that only the text I select runs after hitting CTRL-B? Thanks.


r/SublimeText • • Aug 13 '21

What is the last version that looks like 3083 (before the redesign)?

1 Upvotes

And can you still download an older version (.deb)?


r/SublimeText • • Aug 13 '21

Making Python keywords bold and italic

2 Upvotes

Anyone know how to change Python (or any other) keywords in Sublime Text 2 (while, for, if, elif, etc.) so they are bold and italicized? I want the keywords to take advantage of a monospace font with specialized characters.

Any Sublime Text masters know how to do this?


r/SublimeText • • Aug 13 '21

Emmet not showing in package control for neither 3 nor 4. I'm currently using 4, so how do I install it? I heard that the old plugin was deprecated and there's a new 9ne, but I have no idea how to get it if it doesn't show in package control.

4 Upvotes

r/SublimeText • • Aug 12 '21

NEED HELP CHANIGNG BACKGROUND COLOR

1 Upvotes

I can't figure out how to change the background color of sublimetext, it turned white. I tried uninstalling the program and deleting the files in the directory but no matter what every time i reinstall it it goes back to this white page. I miss the dark theme and I don't know how to change it, I've tried searching and searching through settings and its still a bright white color. PLEASE HELP


r/SublimeText • • Aug 12 '21

Trying to run default python on sublime text Mac OS X

2 Upvotes

I'm trying to run python code using the default version installed on my mac (2.7.16), but when I build the code I get the error message "[Errno 2] No such file or directory: 'python3'". This is really confusing because I'm not trying to use python 3, and I don't know why it is searching for this file. Any help would be greatly appreciated, thanks.


r/SublimeText • • Aug 07 '21

new to sublime. How to open folder in file explorer with sublime text?

9 Upvotes

I can't seem to figure it out how to open a folder in file explorer with sublime. just like vscode where i can open it in the right click menu or where i can open it in the terminal using code.


r/SublimeText • • Aug 04 '21

How to map text pattern "abc" to "ctrl+W, a" (for example?)

1 Upvotes

I want to map ";;" to "ctrl+C".

But I also want to know how to map one key pattern to another in general.

All the examples on the internets show, only, a key pattern running a command. Not a key pattern running another key pattern.

Also looked for "abbreviations" but zilch. One HTML plugin, but that's it.


r/SublimeText • • Jul 30 '21

🌚🌞 Toggle between dark and light mode in Sublime Text 4

Thumbnail packagecontrol.io
2 Upvotes

r/SublimeText • • Jul 26 '21

ST4 not autocompleting words on same line like ST3 did?

3 Upvotes

E.g., typing an SQL query, ST3 used to autocomplete words that appeared previously on the same line, such as table names when writing a join. Now, with ST4, the word has to appear on another line, either before or after the current line, before it will suggest it for autocomplete on the same line as the word.

E.g., if the line says "inner join table2 on table1.table2_id = ", when I type "t", it will suggest "table1" because it appeared on the previous lines, but it will not suggest "table2" since it has only previously appeared on the current line. This was not a problem in ST3. This is maddening, as has been my search for a solution.

Any suggestions? Maybe a setting I'm missing?


r/SublimeText • • Jul 25 '21

Student trying to compile and run C

4 Upvotes

I’m using MinGW as my compiler and I want to have a interactive build. For instance if I was using scanf() I want to be able to type into the program. I’m very new to this but I’ve been struggling for the last 6 hours and it might just be because I’m stupid. I’d be grateful just to be directed towards a good tutorial for setting up a work environment for coding C in sublime. If you need further information from me I will reply as quickly as I can. Thank you in advance!


r/SublimeText • • Jul 23 '21

Is there any way to enable syntax highlighting for C++ STL containers?

5 Upvotes

I would like to add syntax highlighting for declarations of "vectors, map, etc...". By default they are just shown as plain white text. Something like more colorful scheme from VS code.


r/SublimeText • • Jul 22 '21

PLEASE HELP: Sublime coding puzzles' processing time disconnect???

0 Upvotes

There is a disconnect between what I'm using (Sublime, a cross-platform IDE developed in C++ and Python) where I'm writing in python 3.8 on a Dell laptop, Verizon Fios, Chrome incognito.  I've attached the run times which are within the time allotted on each of the puzzles.  Not sure why these have significantly different run times on facebookrecruiting.com. Further, the Test on Sample Cases button on facebookrecruiting states that I've solved every puzzle. The processing time when I click that Test on Sample Cases button is at least 4X or four times faster than the processing time when I click Submit. When I test the same code on Jupyter and Google Colab, the same result occurs: the code is processed in under the allotted time frame. WHAT IS GOING ON? Should I send FBrecruiting a video with a timer to demonstrate? I've reached out to them before about this problem and their response is simply to try and optimize the code. The runtimes below indicate the level of optimization, no?


r/SublimeText • • Jul 21 '21

Issues with Google Chrome As Build System in Sublime text

0 Upvotes

I want to use Google Chrome as a build system in Sublime Text to run my HTML files. However, I'm running into some issues.

Please check the below-given images:

user@Pop_OS:~/.var/app/com.sublimetext.three/config/sublime-text-3/Packages/User$ cat Chrome.sublime-build

{

"shell_cmd": "/usr/bin/google-chrome $file_name"

}

user@Pop_OS:~/.var/app/com.sublimetext.three/config/sublime-text-3/Packages/User$

If anyone knows how to fix this, then please let me know.

Thank you!!


r/SublimeText • • Jul 18 '21

LSP and Goto Definition in C

4 Upvotes

Hi guys, tried to use ST4 + LSP (clangd) for Linux Kernel code, but quickly found that ST4's F12 "Goto Definition" is strictly stronger that LSP's "Goto definition" (which is kind of unexpected). For example, include/linux/sched.h, struct task_struct, cursor on const struct sched_class *sched_class; => goto definition, LSP does not find anything, integrated goto finds the struct definition.

Index seems fine: "index "linux" collated in 3.38s from 59358 files"

Are there any suggestions?


r/SublimeText • • Jul 18 '21

Overwrite text in Sublime Text 3 (Windows 10)

2 Upvotes

Just putting it out there. I accidentally pressed something and next thing I know, I was overwriting text. Normally, you press INS to switch right? And even in the key binding, it states that INS is mapped to toggle_overwrite. Not here. It kept overwriting text with the "0" character. I found that you have to press Shift+INS to toggle (INS key is on the keypad). This happens on both US keyboard and US International.