Coming out of nothing every time I save, delete or add a new line of code, there is white-space so I have to be deleting empty-space.
Like this
See the yellow thing? What can I do about?
Add:
"trim_trailing_white_space_on_save": true,
to your User Settings file.
Related
I opened up sublime text today after restarting my computer and suddenly (either through some random key strokes of my own or due to an update) I have these red diff makers beside line numbers for all file types and regardless of whether the file is part of a git repo. I've tried turning it off, but no such luck.
"mini_diff": false,
"show_git_status": false,
"allow_git_home_dir": false,
This is what the markers look like: they look like the error/ warning markers except they appear beside every modified line and do not go away when saved.
Taking over some code created by a previous developer and have a massive HTML formatting clean up task to tackle.
I am using Sublime 3 with HTML Beautify extension to auto format this mess.
https://packagecontrol.io/packages/HTMLBeautify
When the extension is triggered, the HTML is properly indented, however, all the intended empty lines are removed.
Can anyone provide a setting to ignore intended empty lines when using the HTML Beautify Extension?
Thanks in Advance
From a quick perusal of the settings in the README for the package, this setting looks like it might do what you want:
remove_extraline : Set true to remove empty line.
The setting defaults to true, so that would seem to indicate that it's trimming empty lines by default, but changing the setting might stop it from doing that.
When I open js file in sublime text 3 and place cursor in any string of the code I see following:
Below is added one line without the line number, and in this line indented who and when made changes to this part. The color of the line is gray, like the comment. This information is taken from git. If I move the cursor to another line of code, then in the old place this line disappears and appears in a new place. This happens on the js files. With vue files, everything is fine. How can I disable this?
PS: When I take a screenshot this gray line disappears, so I can not show it in the picture
I found the solution. I changed settings for gitgutter from
"show_line_annotation": "auto"
to
"show_line_annotation": "false"
Now all right
Looks like this:
New to coding etc. and I'm trying to create a small mod for a game called Megaton Rainfall, I'm 90% sure the code I want to change/mod is in my scripts.fcm file but I can't figure out how to change it to readable text. I've switched the encoding to every different kind and it still remains unreadable. Please help if there is a way :) thanks!
Rather than opening in Notepad++ try opening in another text editor such as Vim, Sublime or Notepad. This should then be "readable text"
A new update to sublime text 3 seems to have changed the way the file tabs work. I'm not even sure what is the proper element for this name but something happened with this:
Before this most recent update, i think the tabs would just shrink as the number increased, and not being able to read the name was a signal that i need to close stuff. Now it feels a lot smarter, it makes sure that i can read the entire name, but then a whole bunch of them can be hidden and stacked at the very beginning or end. I dont like this, how can i change it back?
You can set "enable_tab_scrolling": false, in your user preferences to get the old ST2 behavior back.