sublimetext is combining letters - character

I am using sublime text 3 portable under ubuntu. I must have hit some sort of shortcut, because all of a sudden, sublime text is combining letters to some sort of arabic language. (As most of the letters are not displaying correctly, I can not tell which language it is). The following should have been visibility:hidden;
vしびilちÿひضㄣ;
I fiddled around a bit, but I dont know where to start and what to ask.
Edit: It has not neccessary something to do with arabic. For example s+s are combined to ß.

I was desperate so I erased
/home/username/.config/sublime-text-3/Packages/User/
Which kind of worked. I shouldn't have erased all of it, now I get some errors when opening a file. But the typing problem is also gone. If someone else tries this, maybe she should be a bit more careful.

Related

VSCode - Ctrl + Alt + L adds weird character. Need to get rid of it

I seem to have enabled an awkward mode in my VS Code editor that i cant seem to backtrack.
I initially set my Ctrl + Alt + L keybinding to format the code in my editor. Which it initially did. After that - I don't know - I must have pressed some set of keys (maybe shift + something, but I'm not sure), and now whenever I use that key bind. It instead enters a tiny dot like character.
'royalblue̥̥̥̥', <- Like that.
I don't know what this character is and how it came. But I can't get rid of it.
How do I get rid of it?
UPDATE: The issue seems to have been solved, I don't know how. Apparently, when I restarted my machine, the issue was gone (maybe others who come across this can try doing the same). I am, however, keeping this question open, in case someone encounters this and can't get rid of it. Perhaps, an answer may arise and we can finally find out what the issue was all along.
I can confirm that this is due to keyboard language setup. My machine's language was set to English (India) and this same issue started since then. I switched to English (UK) and it got fixed.
I am not sure if this issue is specific to English (India) keyboard language, though. I have English (US) and Urdu (India) keyboard languages as well and I don't face this issue with them.

What is the difference between empty space (>> >> >>) and empty space(......) in eclipse ide?

I know that,empty space (>> >> >>) in eclipse occurs due to use of keyboard(Tab) and empty space(......) occurs in eclipse due to use of Keyboards(Space bar) in the java editor.
What is the significance of it in programming and in the editors? Why is it shown differently in the Eclipse editors? What is the actual use of it and where it helps?
Can it allow to represent in the same way for, characters like new line(\n),vertical tab (\v),form feed (\f) etc.?
There are three ways of indenting: spaces, tabs and hybrid.
Spaces are environment-invariant: if you are indenting by two spaces, it will be two spaces in every terminal, every editor. Different programming languages have different coding style mores. E.g. Ruby is usually written with two-space indents, Python with four-space ones. Some people like space-based indentation, and can be very vocal about it.
Tabs will usually see people indenting by exactly one tab. It is up to the environment how to display it. The default is usually one tab in every 8th column, but editors will usually be able to adjust this. That way, if you disagree with a colleague about how many spaces are best, each can set their own environment as they wish. Some people like tab-based indentation, and can be very vocal about it.
Hybrid is a nightmare. If you mix spaces and tabs, expect trouble, as it will typically happen that you will encounter pieces of code that are horribly misformatted, wherever that colleague touches it. Avoid hybrid indentation at all costs. The only people who don't absolutely hate hybrid indentation are those who haven't dealt with it yet, or don't understand why any of this is happening.
Now, it is very hard to avoid the hybrid indentation if you don't know which indentation method is actually present in the file, especially if your editor is helpfully emulating tabs when you have space indentation, e.g. by deleting the whole indentation level when you press a single backspace (as is normal in most editors).
Furthermore, there are some horrible programming languages (such as Whitespace and Makefile) that semantically distinguish spaces and tabs, and it is thus critically important to see what each character actually is.

Cut and paste from eclipse into MS word appears as large blue blob

This has been bothering me for years. Every time I cut a block of code from a java file in eclipse and paste into a word document, the text just appears as a big block of text. Does anyone know of a way to fix this?
This mostly happens with single line copying. Try copying by including the white-space from the above/bottom line.
Try pasting your code into a basic text editor first, like notepad; it should get rid of any attributes that are coming from where you cut from.
EDIT
See http://office.microsoft.com/en-us/word-help/control-the-formatting-when-you-paste-text-HA010215708.aspx and look for the "Keep Text Only" option.
This is well known problem. It is registered as a Eclipse bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=86503
Unfortunately, for today, this problem is not solved.

Why is IntelliJ using autocomplete in a plain text file and how do I turn it off?

In trying to edit a 2300+ line .ini file Intellij is really slow, as in 1-2 seconds after keystroke before the letter appears. I see autocomplete popping up and I assume that's why its slow, but its a plain text file, why is it even giving me autocomplete?
And ok, its only registered as plain text because I haven't figured out how to get it to support hierarchical config files nicely, and autocomplete could be useful here, but it shouldn't be that slow.
Have you tried clicking the police icon in the right lower corner? Setting the "Highlighting Level" to None it speeds up most things when working with large files of any kind.

Setting up your editor: indentation and encoding

I'm developing a small project with some friends and we're facing some indentation issues. Each of us is using a different editor (we all have different favorites :) and we also are on different operating systems.
What is the best solution to be able to all develop together and set our programming editors so indentation and encoding is the same? What settings do you recommend and why?
You should have your version control system handle the line ending problems. In SVN, the "svn:eol-style" property can be set to "native" to handle auto-converting the line endings. I assume your code is ASCII or UTF8 so you don't have problems with character encoding.
As far as formatting goes, you'll have to choose roughly some style, such as where to put the braces, but there's no reason you have to have the same indent style, provided you use the same number of indents. That's a confusing statement, so allow me to explain: nearly every IDE ever has the ability to set tab widths to any value you want. If one team member likes to indent 2 character widths, another 4, that's fine. One tab character stored in the file can display either way based on IDE settings. Just configure your IDE to indent with tabs and then set the tab widths per your desires.
(at the risk of starting a flame war, this is why I am solidly in the camp of tabs in the tabs vs spaces war. strangely, the spaces folks seem to consider this very feature the reason to use spaces... I will never understand them).
If you are all insistent to have your own indentation settings, then you will need to use exclusively the tab character to indent the code. (Provided your various editors support this).
This approach is counter to the general consensus of using spaces and only spaces for indenting purposes.
Whatever you do, I recommend converting tabs to a common number of spaces. I know Eclipse can do this on the fly, but I'm not sure if edits like gvim can. In any case, with all spaces it is not up to the individual editors/IDEs to interpret how many spaces make up a tab. Also, if anyone's using a Windows editor/IDE, set it to use Unix-style newlines, so that you don't get the annoying ^M at the end of every line when you edit in a different OS.