SublimeText 3 issue with Emmet - html

When i press tab button only generate last character.
but i want generate entire line to the html.
for example when i write div>a and press tab, generate
div>
instead of:
<div></div>
What's the problem? how can i fix this?

It happens because you’re actually completing snippet from autocomplete popup. Either press Esc before expanding abbreviation or set disable_tab_abbreviations_on_auto_complete preference to false: https://github.com/sergeche/emmet-sublime/blob/master/Preferences.sublime-settings#L29

I have the same issue, because it generally does it everytime, I'm used to do this :
TAB -> CTRL + Z -> TAB
Not very convenient, but does the job.

Related

my HTML Shortcuts in VS Code are not working

I started studying HTML on YouTube not long ago and have been using visual studio code. Whenever specific shortcuts are used, mine does not work. An example would be typing the exclamation mark and then the tab button("!" + tab) to automatically give you the default HTML skeletal template.
Also, tag suggestions do not work. Whenever I start to type a tag like , I don't get any suggestions whatsoever and it leads to a lot of mistakes and confusion for me. Can someone help me, please?
CTRL + Shift + P
Change language mode
Click on "Configure file association for .html"
If you scroll down through the list, you will see a label "Current association" next to the file type that your file is currently associated to.
Change it to .HTML if that's what you want .html files to be associated to.
Close the file and open it again.
Try ! - a tooltip should now pop up and then you hit tab.
You can go to VS code and tap on setting will show a pop-up, choose Keyboard Shortcut will showcase you all the keyboard shortcut.
You only need to change languague on status bar (below) from Django html to html.
Now retype the shortcut i.e. "!+Enter"
Change Setting Emmet
Go to Setting , CTRL + , for shortcut
Type Emmet Tab on search bar
Enable trigger expansion on tab
Try type ! + Tab
Suggest
Type ! on HTML File
Press CTRL + SPACE, to activate trigger suggest
And Enter
HTML:5
Type html:5
Enter or Tab

VS Code: Auto-indent on tab press to match indentation of previous line

For comparison:
In Sublime (and also Atom), if I press tab under a line of code that already has 4 tab spaces, Sublime will automatically jump to the same tab spacing of the previous line (4 tab spaces).
In VS Code – when trying to accomplish the same thing – tabs will fail to 'jump' to the previous line's spacing, and force me to manually press tab multiple times, instead of once.
Is there a work-around, or am I missing something?
Sublime, Atom - 1x tab press
VS Code - 4x tab press
If you add this to your settings, you'll be able to just type out the line without watching indentation and whenever you hit enter, vscode will indent that previously written line automatically:
"editor.formatOnType": true
I know this isn't exactly what you're looking for, but I thought I might as well share and hope this is a satisfying answer.

Sublime Text 2 + Emmet - not expanding correctly

I have installed emmet for Sublime Text 2...
And it works - kind a strange way
When I enter d it starts showing possibilities, but as soon as I press: : emmet shows completely different tip:
b (bottom)
So I need to press esc to close fuzzysearch box and press tab to allow Emmet do what it is used to do.
Dow, if I don't press esc before the tab key the resould is: d:bottom:, is I press esc, it desoults in correct: display:block.
Do you have an idea how can i fix that?
This happens because Emmet tries to respect default ST completions and due to lack of API support to properly handle built-in snippets: https://github.com/sergeche/emmet-sublime#tab-key-handler
By default, Emmet will not expand abbreviations by Tab if there’s autocomplete popup visible to allow users to work with default ST completions and snippets. You can override this behavior:
Go to Preferences > Settings — User
Add "disable_tab_abbreviations_on_auto_complete": false option. Make sure this file contains valid JSON.
After that everything should work fine, but you’ll no longer able to complete items from autocomplete popup with Tab key, use Enter key instead.
I had a similar issue but my fix was different to that of the accepted answer.
I had to go to Preferences > Settings — User and remove "emmet" from the ignored packages and everything started working again!

Is there shortcut to JSLINT in Jetbrains webstorm/phpstorm

Is there any shortcut for toggling jslint or showing white spaces?
At least maybe there is some way to put jslint icon on the main toolbar.
This is very easy to do:
Press CTRL + SHIFT + A
That should give you a search box like this:
Now all you have to do is type in "whitespace" and that will give you a list of completions, and after that, you select the first completion available.
That will enable whitespace in Webstorm. As for enabling and disabling features in jslint:

How to remove red border in phpStorm?

I have a little strange question, and I'm hoping you could help.
Cause, I've been searching for the answer in Google, in PHPstorm documentation and etc.
Here's what I need. Every time I type something in CSS or HTML with Zen coding, this Red Border appears to the value. When my mouse cursor is anywhere else and I hit "Enter", the cursor goes to the end of that red border.
So does anybody know, how to get rid of it? It drives me crazy..
Thanks.
pressing Enter (or Tab) is enough to remove the border :) See help:
"If the selected template is parametrized and requires user input, the editor enters the template editing mode and displays the first input field highlighted with the red frame. Type your value in this frame and press EnterEnter or TabTab to complete input and pass to the next input field. After completing the last input field, the caret moves to the end of the construct, and the editor returns to the regular mode of operation"
I have had the same unwanted behavior in PHPStrom with php.
For PHP the solution was to uncheck the following checkbox:
Go to Settings (ctrl + alt + s), then navigate to:
Editor -> General -> Smart Keys -> PHP
Uncheck checkbox: "Enable smart function paremeters completion"