I am new to coding and started using sublimetext2. I am currently mastering C, do not have problems with text autocompletes, but the bastard won't stop filling out syntax ones, such as when I open a bracket it already pastes the closed one. I want to learn properly, and that is to experience the problem with the missed syntax in order to make my learning process machine independent. Any clues?
By the way, manually setting "auto_complete": false did not help.
Cheers!
such as when I open a bracket it already pastes the closed one
In your user Preferences.sublime-settings set this to false.
"auto_match_enabled": true,
For the rest of your question, start looking through the system preferences file and copy those features your would like to set to false to your user preferences - things like
"smart_indent": true,
"match_brackets": true,
"tab_completion": true,
etc
Related
This question already has answers here:
How can I hide indent guides in Visual Studio Code?
(6 answers)
Closed 11 months ago.
What is causing the vertical lines in this image?
Every file I edit has them.
Sometimes they disappear, but then they come back.
I am using VS Code v1.66.1
Here is an image of the lines:
Below, there are 6 settings that have to do with 2 features that sort of overlap each other. VS Code originally only supported standard indent guide highlighting, then they added a feature called colorized bracket pairs. VS Code releases monthly updates 11x times a year. The month, after bracketColorizationPairs was initially released, VS Code added more to bracketPariColorization, which included vertical and horizontal lines. Those lines are more configurable than indent guides, and can render in hard to get situations indent-guides was not able to. Also, they render horizontal, under the line of code that starts a block.
When both indent guides and bracketPairColorization lines are configured to both render, the bracketPairColorization gets priority over the older indent-guides feature.
To avoid all the confusion, add the settings below to your settings.json file, the completely restart your editor. It should solve the problem. Let me know the result.
{
"editor.guides.highlightActiveIndentation": false,
"editor.guides.indentation": false,
"editor.guides.bracketPairsHorizontal": "false",
"editor.guides.bracketPairs": "false",
"editor.guides.highlightActiveBracketPair": false,
"editor.bracketPairColorization.independentColorPoolPerBracketType": false
}
Adding the settings displayed above will turn off the "bright annoying lines in VS Code" which are officially called: Colorized Bracket Pairs. Coloring the brackets, and bracket guides, is a bit beyond the scope of this Q&A, consequently, I won't explain how to change the colors, but I will create an active link around this text your reading, that when clicked, will take you to an answer that explains coloring the guides and brackets.
Go to the menu Code->Preference->Settings and search for "renderIndentGuides". The complete setting should appear as:
"editor.renderIndentGuides": true,
Change it to false.
UPDATE:
Keys had changed since v1.61 - on later version set the following instead:
"editor.guides.indentation": false
Suggestions are very useful, but sometimes they're annoying.
I want to hide suggestions when what I typed is a known word in the language or in the current document.
E.g.: Since I used the word elapsed in a document, every single else I typed after it selected elapsed. Very annoying. Since else is a known word, I want the suggestions disappear, so when I hit ENTER the final word is that what I typed. This is a case; there are a lot of cases.
Other editors hide suggestions on known words (e.g.: Kate).
Tuning "editor.quickSuggestionsDelay" doesn't help, because frequently I stop to think and suggestions will appear anyway.
"editor.acceptSuggestionOnEnter": false doesn't help too; I've tried it but I'm not productive using TAB instead of ENTER.
I also tried "editor.wordBasedSuggestions": false, but this is not what I want. It hides every known word, but I want to select known words if I didn't type one.
I would like an option like "editor.hideSuggestionsOnKnownWord": true, but I could not find nothing similar in vscode.
Is there an option or an extension to do that?
I'm editing a stand-alone JavaScript file in VSCode 1.19.2. I do not have a project set up, and no jsconfig.json to control it.
I enter the following code into an empty editor:
var scene = new THREE
Intellisense starts to kick in and gives an auto-complete list.
When I press "." (expecting my code to become THREE.), IntelliSense takes this as a sign that it gave me the right answer, and changes my code to:
var scene = new HTMLHRElement.
The full string "THREE" wasn't even in the list, but IntelliSense seems to be using some kooky regular expression to predict what the user actually tried to type--the letters are all there in the applied symbol, but they're all split up and in different cases.
For me, this is counter-intuitive (not to mention frustrating beyond words, because I type this string a lot), but everything I've found so far is people asking for this feature. So, I'm looking for a work-around for me.
Is there any way to turn off "complete on dot," or maybe a similar setting to force IntelliSense autocomplete only on tab? Also feel free to correct my terminology, in case that was preventing me from finding the correct answer.
JavaScript and TypeScript treat . as accepting the current suggestion by default. You can disable this by setting:
"editor.acceptSuggestionOnCommitCharacter": false
or, if you only want them disabled in js:
"[javascript]": {
"editor.acceptSuggestionOnCommitCharacter": false
}
I cannot figure out the option to turn off the new "feature" where the VS Code HTML mode editor types stuff for you in the following scenario:
I type <b> and when I hit that last > it then types </b> which I then have to delete and move to where I want it.
How do I keep VS Code from typing stuff for me in this case? I have these two options set like this:
"editor.quickSuggestions": false,
"editor.autoClosingBrackets": false,
Sort of the opposite of this question: VSCode not auto completing HTML
I found it:
// Enable/disable autoclosing of HTML tags.
"html.autoClosingTags": true,
This new feature shipped with autoClosingTags set to true by default, which was, unfortunately, a disruptive change if you were used to being able to type without random stuff being inserted into your document as a side effect.
Setting autoClosingTags to false restores the original behavior.
"html.autoClosingTags": true,
"html.autoClosingTags": true,
Does not work for me .. maybe misleading or bug
I do a workaround to change the type of the file down the editor to handlebars or another language because it was very frustrating for me that the editor insists to add something I understand I do not need like closing tag while the closing tag should be at footer file.
 I'm now puzzled by the behavior of SE about the auto-copy feature.
First,when I double click on any word,the word will be copied to the clipboard,however I never found any other editor which behaves like this.This is actually annoying exspecially when you want to paste one word to another word by double click the other word to select it.
 Second,When I select a block by moving the mouse ,the selection area is automatically copied to the clipboard,which makes me quite depressed because I select the block just to highlight it but not to copy it.
 As you see,these two features both concern about the clipboard in SE.I actually don't think they are good designs.Or is there any way to close these features,I will be very grateful to get any helpfull advice here.Here is my e-mail[[hustwsh2011#gmail.com][1]] if you would be so nice to send the answer to my mailbox.It's also welcomed to post your answer here so as to help others who are also puzzling by this problem.
_command paste_replace_whole_word_fixed(){
// I assign this to A-DEL INS
delete_full_word();
paste();
}