How to mimic Sublime Text's HTML dom completion in Emacs? - emacs

Currently in Sublime Text 2 I can do the following while editing a .html file:
hr.margin-none <TAB>
and it will expand automatically to
<hr class="margin-none"></hr>
Is there a similar function in Emacs? I found something on Flexible Expand but it doesn't seem to do what I was hoping (or maybe I'm just using it wrong.)
Thanks!

You can do the same thing in Emacs. Just install the emmet-mode and enable it. Reading the following page would help you.
https://github.com/smihica/emmet-mode

Related

Prevent ctrl-B from setting bold font while working with md files with the Markdown All in One extension

In VS Code, when you are working with a markdown file with the "Markdown All in One" extension active, ctrl-B sets the selected text to bold by surrounding it with **
The problem is that I use the ctrl-B keyboard shortcut all the time to show/hide the side bar.
Is there any way to disable that emboldening shortcut (or define an alternative one) when working with Markdown files, and to use it for hiding the side bar?
edit: the problem was that I had the 'Markdown All in One' installed
I don't think this can currently be done without uninstalling / deactivating your "Markdown All in One" extension. If you look at the list of keybinding actions it offers (see those that start with markdown.extension.editor.toggle), there are ones for toggling code spans, blocks, math, lists, but none for toggling bold and italics, which I find strange. No dice either searching for suggestions in the keybindings.json with "markdown.extensionbold".
So either I'm missing something, or you need to make a feature-request on their GitHub. If you do, post a link in the comments here for posterity.
As a last resort to get a fix right now, you could just remap your toggle-side-bar keybinding to something else.

VSCode Vim extension to search for visual mode selected text

In vim I can search for a visually selected string using a number of techniques including what can be found here:
http://vim.wikia.com/wiki/Search_for_visually_selected_text
Is there a way to do the same thing in VSCode with the Vim extension?
Right now, VsCodeVim doesn't support the command in search mode, so that keybinding isn't possible.
If you want to see that in the future, opening an issue at https://github.com/VSCodeVim/Vim/issues would help.
EDIT: https://github.com/bronson/vim-visual-star-search is implemented, so this functionality is now there.

How to remove an autocomplete option from notepad++

I am using notepad++ and have enabled the autocomplete feature. For the most part I like having it, but there are a few words it tries to autocomplete that just interfere with my productivity.
For example, whenever I try to type <?php it will attempt to autocomplete to <?php_egg_logo_guid, <?php_init_loaded_file or a sundry of other such options. It is a bit annoying and I don't even know what the use of any of them are.
I would like to remove these unneeded options from autocomplete. Is it possible? If so, how?
Thanks!
Edit: After a few bad answers, let me clarify:
I am not trying to disable autocomplete completely, just remove a word or two from the dictionary of choices which it chooses to give hints from.
Edit the relevant .xml in notepad++'s program files's plugins\APIs to remove the silly php autocompletes as explained here.
https://gist.github.com/jmc734/157ff4a4ee85f8e58102
You can add <?php as a suggestion. It will show as the first choice in autocomplete.
edit:
%ProgramFiles(x86)%\Notepad++\plugins\APIs\php.xml
add the line:
<KeyWord name="php" func="no"/>
Settings > Preferences > Auto-Completion > Uncheck the Enable auto-complete & Function hint options. This should do it.

How to resize autocomplete window in Sublime Text 2?

I'm using Sublime text 2 as text editor for HTML and JavaScript and I have a small problem. I'm using autocomplete but some of the function's names are so long that I can see only first 5 or 6 symbols of it. Is anybody knows how can I resize the autocomplete window? Thanks again.
As far as I know, it's not possible in ST2. It might not be in ST3 either, but at least the autocomplete pop-up adapts its size to the content. Should you consider an update, make sure to have a look at the Can I switch to Sublime Text 3 website first.

why browsers editing shortcut is the same as emacs default shortcut?

Things like ctrl-a , ctrl-e , ctrl-f, ctrl-b, ctrl-n, ctrl-p, ctrl-k, ctrl-d.
When you edit in a normal html form in any browser I know (IE not included), the shortcuts above works the same as in emacs ?
(When I say normal form , I mean a html form without any interactive js stuff. )
Thank you for answering.
Because these are the key-bindings that God intended for us to use.
It is because your browser uses the readline library. The keybindings depend on the OS Actually. You can even configure the keybindings editing the ~/.inputrc file. You can read more at the readline manual here