How do you set default indentation preference to Tabs and not Spaces in WebStorm?
I know you can edit the indentation when you select lines of code, but where do you edit the default setting?
Open Preferences, then Go to Editor > Code style > Select a language > "Use tab character"
Related
I'm having this super annoying behavior with WebStorm. Every word I type and press space turns into a tag.
How do I stop this behavior?
You must have Space specified as a key used to expand Emmet abbreviations. Please check Preferences | Editor | Emmet, Expand abbreviation with and Preferences | Editor | Live Templates, By default expand with options values
WebStorm 2017.3 is stripping trailing whitespace from the current line when the editor loses focus. For example, I type "hello" and then a space; I Alt+Tab to another window and then back to WebStorm; then I type "world" and the result is "helloworld". This happens with all file types. Is there an editor setting somewhere that controls this?
I do have the "Strip trailing spaces on Save" option in Editor > General set to "All" and this is what I want, but I only want it to happen on save, not lost focus. (I don't think this setting is the issue here.) I also do not have any of the "Virtual Space" settings enabled, nor do I want them. I looked through all the other settings and didn't find one that seemed relevant, but I probably missed it.
WebStorm saves files on losing focus by default, that's why white spaces are stripped. Please try disabling Save files on frame deactivation in Settings | Appearance & Behavior | System Settings
How do you turn this off?
Ive tried turning off all html highlighting, but it now hightlights all instead of this.
It's very annoying, it highlights till the end.
Ok I got it,
File/Preferences > Settings > Search for Injected Language Fragment and then untick the background color.
I'm trying out WebStorm and I've run into a minor, but frustrating problem: working from an existing project, files open with their tab width set to 2 instead of 4.
In Settings -> Code Style -> JavaScript I have use tab character selected and the tab size/indent/continuation indent all set to 4, but Ctrl + Alt + I from here which should 'fix' the indentation from 2 to 4 doesn't do anything, nor does Code -> Reformat Code as per this SO answer
Ultimately, I just want all tabs to be interpreted as a 4 space tab instead of a 2 space tab project-wide (css, scss, javascript, html).
Is there an easy way to do this?
I was trying to replace single to double quotes for single declaration, I've selected the block, pressed CTRL+F, a nice search&replace panel shown up.
OK, I have Replace, Replace All. OK, I have also scope: Current file, Open files, Enclosing project, Workspace.
But where is selection?
How to replace the text in selection only?
I'm using Aptana Studio 3, build: 3.4.1.201306062137
Under Window -> Preferences
Aptana Studio -> Find Bar -> "Show Eclipse search dialog on 2nd Ctrl + F"
Then it's necessary to press CTRL+F 2 times, and the "clasical" search/replace dialog is displayed.