where is define autocomplete tag in ST3 ? I have duplicate "<" problem - autocomplete

I use ST3, when I press "<p", autocomplete menu propose "<p>" tag, but the result is
<<p></p>
Where is stocked the default code of autocompletion? Why do I have a duplicate "<" char, and how fix do I it?

use autoclose tag or press only p and autocomplete transforme to <p></p>

Related

auto close tags after dropdown selection?

I am migrating from sublime to VS code for HTML and autoclosing system works a bit worse under VS code:
In sublime, I type a '<' and then start typing the tag I am looking for and get a dropdown menu, once I select the right one with enter sublime automatically adds the rest. For example, I can type '<' then type p and select a paragraph element and "></p>" is added automatically afterwards.
In VS Code, after selecting the tag I always have to type the '>' symbol afterwards, which is getting really annoying after a while. Is there a way to change the behaviour?
(I am using the auto close tags extension)

Keyboard Shortcut to Surround Selection with HTML Tag

Desired Steps:
Highlight (select) HTML/text, e.g. really
Press keyboard shortcut
Highlighted text becomes <b>really</b>
How to?
In a Javadoc comment you can just select the text which you want to wrap in a <b> tag and press CTRL+Space. Select the <b> template, press Enter and the selected text gets surrounded as expected. There are pre-defined templates for <b>, <code>, <i> and <pre>. You can define your own templates here: Java -> Editor -> Templates.
You're looking for Quick Fix/Quick Assist: Ctrl/Cmd+1. Then start typing the tag name.

How to print out highlighted text in Eclipse?

I was wondering if there is a way to print out highlighted text in eclipse by using shortcuts.
So say we had
int number = 2;
number //highlight number + some key combination to turn -> System.out.println(number);
Thanks in advance!
Select number, hit Ctrl+Space, type syso and hit Enter.
The trick is to trigger the content assist (Ctrl+Space) when something is selected and then type the beginning of the template (in this case syso) and not the other way around (not syso and then Ctrl+Space).
See this #EclipseJavaIDE tip:

TinyMCE plugin not showing euro symbol

I use the last update of the TinyMce plugin and I have a problem with the € key. Nothing happens when I want to insert this € symbol [with ctrl + alt + e].
I read the doc but I dont know what to edit for make it works...
With TinyMce you can "insert special character" with a plugin
It is in the TinyMce documentation :
"This plugin adds a charmap toolbar button that enables users to insert special characters into their text. It also adds the menu item Special character under the Insert menu."
https://www.tinymce.com/docs/plugins/charmap/
Hope this helps

Sublime Text 2 - HTML autocomplete

In ST2 when you type div.foo and then press tab it goes to <div class="foo"></div>
Is there any setting to do autocompletion like that?
<div class="foo">
// 4spaces here.
</div>
Thank you.
UPDATED
Didn't find a special setting but found where to change snippet if someone intested.
In Sublime Text 2/Packages/HTML/html_completions.py just change
snippet = "<{0} class=\"{1}\">$1$0".format(tag, arg)
to
snippet = "<{0} class=\"{1}\">\n\t$1\n$0".format(tag, arg)
Solved.
You must be using emmet.... stock sublime text 2 does not auto complete class attribute from typing element.class that is emmet's doing. I use it... I love that emmet magic.
Similarly you could type element>element to make the second one nest on the first one. or element#id to add an id instead of a class...
Here is an entire cheat sheet for emmet for more completions using emmet plugin on ST2.
Make sure your page is on HTML. You can do this with CTRL+SHIFT+P. Then type 'set html'.
Then you can type div.class_name followed by TAB.