Javascript Indent issue in Sublime Text - sublimetext2

I'm using sublime text 3 and recently i'm facing indentation issue in multiple select indent. It only happen in javascript files or embeded javascript in html.

I've found the trick for that question. Ctrl+[ and Ctrl+] can be used as well for indentation but i want my tab key to behave like Ctrl+] just like Shift+tab does as Ctrl+[

Related

vscode indent full line instead of insert tab

One of my many vscode extensions must have been updated in the background. I cannot trace which one but since the tab key indent the full line instead of inserting a tab.
From what I found online, there is no way to fix this with the keymap settings?
I have tried and disabled all extensions but that doesn't fix it.
Any suggestions?
Try opening up the the vscode command pallete using ctrl+shift+p.
Then type in indent using spaces and select it. This should bring up a menu where you can select the tab size.

Jump into HTML tag keyboard shotcut in vscode

I've spent some time looking through the docs and keyboard shortcut options and I've been unable to find this specific feature inside vscode, sublime text, or atom. It seems to obvious that I must be missing something.
What is the keyboard shortcut or name of the setting to jump into an html tag from the outside? I know the emmet plugin supports tabbing through on initial setup but if my cursor is to the right of the tag is there a shortcut to jump into the middle of the tag?
For example
is there a way to go from cursor being here
<label>Name</label> |
to here
<label>Name|</label>
without keying left 8 times?
Try extensions like HTML Snippets or HTML CSS Support.
It auto completes the html tags.
Or in normal case, try Ctrl+Left Arrow
It shifts left by one word.
VScode extensions like: jumpy, Code Ace Jumper, MetaJump - allow you to easily jump through code in your window.

When editing HTML in Sublime Text autocomplete <img> path

Does sublime text3 has file path prompt?
for example :
<img> tag
src="img/apple/pic.jpg"
after img/ it can automatic prompt
Sublime Text does not come with these features preinstalled. However, it's very likely that a plugin such as this one (I haven't tried it) will solve your issue. If it's an image you use like all the time, you can make it a snippet if you'd like so you could type apic for example, press tab, and it would expand. Otherwise, try the plugin.

Different tab size and aligment behavior on Sublime Text 2 on Windows and OSX

I'me using Sublime on a Mac at home and I use it often in my work on a Windows PC.
I'm having some issues with the tab size, the settings are equal but the behavior is very different, alongside with it Alignment plugin does not align properly and when I open aligned files on my Mac they are not aligned.
I am also unable to "hide" divs that are not in the first tab on the document (if it is indented then I cannot hide it)
Does anyone knows how can I fix this issues?
I have searched all the settings and Sublime forum but no luck
Thanks
First, you should post one question per question on StackOverflow.com, with exact examples what is the actual issue. Now this is random issues bunches together and I will only answer one.
Most likely your Windows and OSX have different configurations (or plugins) how to tabs are handled, even though you think it is the same. So I suggest you paste your configuration files.
Sublime indentation settings are documented here:
http://www.sublimetext.com/docs/2/indentation.html
Here is an example configuration how to sanitize tab key to always indent with 4 spaces and ignore possible indentation settings Sublime Text tries to guess from the file (taken from this blog post):
// Tab and whitespace handling.
// Indent using spaces, 4 spaces ber indent by default, clean up extra whitespaces on save
"tab_size": 4,
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
"trim_trailing_white_space_on_save": true,
// Do not try to detect the tab size from the opened file
"detect_indentation" : false,
More about how tab character vs. space character appear in the text files (subjectional).

Sublime Text 2 Tab Auto-Complete

I have mostly worked in Adobe Dreamweaver (don't hate too much, I really like some of its feature that I'm about to mention). I'd really like to become proficient in Sublime Text 2. There are two things I'm looking to figure out:
When I start typing a tag and it auto suggests what it thinks I'm typing, I can hit tab or enter to auto-complete the tag. But when I do this, it makes the closing tag too. I hate this, because I go back to change things often, then when I tab to auto complete, it adds in the entire closing tag. So my question is can I make it ONLY auto-complete the opening tag when I hit tab or enter? (btw, I have emmet installed too)
My next question, if anyone is familiar with Dreamweaver, whenever I open an HTML file, it opens all corresponding files in a sub menu below the tab. So I open say, index.html, and below it appears, automatically, my css file, js file, and any files that I've put in the html file. With Sublime Text, I have to go to the trouble to open all those files with it. Is there any plugin or way to make Sublime replicate this?
Thanks so much for any help anyone can provide!
This is a bit old, and maybe you've discovered the answer, but for #1, you can set the "auto_complete_commit_on_tab" setting to true in your user settings.
http://www.sublimetext.com/docs/2/auto_complete.html