VSCode: Stop selecting the white space when tabbing a shortcut - html

In IntelliJ when you tab on a shortcut, the space after the shortcut is not selected but when you do that in VSCode it is, how can I change it?

I solved it, go to settings and turn off "Editor: Insert Spaces"

Related

PhpStorm: how to go back after a Ctrl+B?

Can someone tell me if there is a shortcut in PhpStorm that allows to go back to the file I was before I press Ctrl+B shortcut?
Edit: Ctrl+B may be the key shortcut for navigating to the declaration of a variable (the part of the code that states what $var is set to).
Yes, there is shortcut for that: ALT + left (Navigate -> Back)
The command Back from the Navigate menu should do what you need. On OSX, using the default keymap, its shortcut is Alt-Cmd-Left.

How to move caret to end of file without End key

I'm using a Mac, and I want to move the cursor to the last line of file without using Home, End, or Page Down keys.
Any idea?
I've tried "scroll to bottom" keymap but that only moves the scroll, not the caret.
There's a reserved Editor Action for this and it's named Move Caret to Text End. You can find this in the Preferences window (Preferences -> Keymap -> Editor Actions). The counterpart of this action is Move Caret to Text Bottom, in case anyone is interested.
In Mac, native text editors come with shortcuts cmd+up and cmd+down out of the box to easily jump to the top or the bottom of the page (along with the caret). You'd mostly want to adopt the same shortcuts on your PHPStorm IDE to make page navigation more seamless.
Try ⌘A, →.
But it's better to assign shortcut as #LazyOne suggested.

Sublime Text Editor: Boxes Appear instead of Spaces

I might have pressed something on my keyboard by accident. The spaces on my code turned into boxes and it's annoying. How do I remove it?
You have opened the Find panel and searched for a space. Press Esc to close the find panel and the boxes will disappear. Alternatively turn off "highlight matches" in the find panel.

How does one set the tab width in Komodo Edit?

This is a rather simple done in Emacs or NEdit, but I could not find how to setup tab width in Komodo Edit (I use 7.1).
Komodo has a bug in the setting "Allow file contents to override tab settings". Here is the fix:
Go to: Preferences → Editor → Indentation. From this screen, turn off "Allow file contents to override tab settings" as this is very buggy and can cause Komodo to override your settings (hence the need to change the per-file-setting in other people's solutions)
From this screen, check all other tab settings, and check the per-language settings in the drop down.
Now close all files and after reopening them the settings should now take effect permanently. This is a better solution as you will no longer have to go to each file and constantly reset the per-file indent settings.
Go to the preferences page.
Depending on your display style - GTK style I think, the plus sign or what it is in front of the entry "editor" might be unvisible.
Either double click on "editor" to show the subtree, click into the free space in front of it (like sinking submarines), or search for indent or tab in the search bar.
There you will find the indentation setup details.

Auto-convert tab to 4 spaces in TextWrangler?

Is there a preference in Textwrangler to redefine a tab as 4 spaces? In Vim this is set expandtab in the vimrc, but I don't know how to set it in TW besides clicking "Detab" when I'm done editing the document.
Thanks,
Kevin
Go to "Preferences" -> "Editor Defaults" -> "Auto-expand tabs," and then set tabs to 4 spaces. Then restart TextWrangler for changes to take place.
For docs that already exist you have to hit the "Text Options" button in the top of the editor window of the open document. In older versions, it's the button that looks like a "T" with a light switch next to it; with newer versions, it's a gear "⚙" icon. In that drop down there is the "auto-expand tabs" as well.
in version 4.5.5, there is 'Text -> Detab...', which pops up a requester for how many space per tab, preset for 4.
Go to Edit -> Text Options and tick Auto-expand tabs. This will make all the new tabs to change to spaces.
To change all current tabs to spaces as well, go to Text -> Detab and hit Detab.
Hope that helps!
For Mac, another easy way to check and enable "Auto-expand tabs" is to hit the gear button on top left.
You can also use "Normalize Options..." to set the text options of an already-open document to whatever you have set in your Preferences. This is useful for dealing with pre-existing code.
There are two places you need to set the settings for this to work. One is for previously opened documents, and the other for all documents to be opened or created in the future.
The Settings
set "Auto-expand tabs" to checked
set "Tab width" to 4
Previously Opened Documents
Click the "Text Options" button. It is in the top left of the editor window directly above the document view of the open document. In newer versions it's a gear "⚙" icon. And in older versions it is a "T" and light switch.
New Documents
go to preferences menu: BBEdit -> Preferences
choose "Editor Defaults" from the side-bar in Preferences