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.
Related
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.
I usually use chrome inspector to make changes in my web pages. At the end, I want to copy styles from the panel to my CSS file, to keep changes.
I use 4 space tabs in my codes, but when the code is copied, it is indented by 2 spaces, that makes it incompatible with whole document, and I have fix it every time.
Is there anyway to change this default tab stop in Chrome Inspector?
In Settings > Preferences > Sources, there's a combo for picking the 'Default indentation'.
Example:
Copy the code in the Styles tab
Paste it into your text editor
As you can see, there are 4 spaces characters shown.
I am using PhpStorm. And I don't like the way it handles line breaks. It just sends the code to the extreme left, but I want it to be aligned to the tag.
Below is the image which shows PhpStorm vs Notepad++. I like the way Notepad++ handles the alignment of the code. I want PhpStorm to do exactly that. I tried changing settings in Editor=> code styles, but could not get what I want.
Settings/Preferences | Editor | General
Soft Wraps section -- use the settings there -- as simple as that.
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+[
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