How to enable auto-moving caret to word when clicking in WebStorm - webstorm

It`s difficult to explain, better see images below.
When clicking within any part of empty line, cursor stays where I clicked:
And how it should behave:
Small notice, before updating it behaved normally, but after it changed.

Check what you have got here: Settings/Preferences | Editor | General. Make sure that Allow caret placement | After the end of line option is disabled.

Related

WebStorm - HTML - Every word I type turns into an HTML tag, how do I stop it?

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

Get WebStorm to stop stripping trailing whitspace on lost focus

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

Indicator for missing semicolon at the end of code blocks in WebStorm

I've noticed that every now and then I've missed a semicolon. I found out its because the indicator that WebStorm shows when a semicolon is missing does not appear for the last line of a code block. For example:
But later if you adjust the code block and add more lines it becomes invalid:
How can I get WebStorm to always show the missing semicolon indicator so I can catch it while I'm writing the same line? I already have "Settings > Editor > Code Style > JavaScript > Other > Use semicolon to terminate statements" enabled.
Warnings/Notices are detected by inspections while Code Style is used for code formatting (automatic (when you code) or on demand).
If you want to rely on your code style settings alone then I would suggest to use Ctrl + Shift + Enter to complete your statements.
As for actual inspection: Settings/Preferences | Editor | Inspections | JavaScript | Code style issues | Unterminated statement -- it has special option that affects last statement in the block.

Inserting braces around selection without replacing the selection in Webstorm

While editing JavaScript, I'd like to select a phrase in the code and wrap it with braces.
In Sublime Text for example, the default behavior is when I hit the [ key with a piece_of_text selected, it gets converted to [piece_of_text]. However in Webstorm it turns into [].
How do I change this behavior?
Please make sure that Surround selection on typing quote or brace option is enabled in Settings/Preferences | Editor | General | Smart Keys.

Making Dreamweaver more like Notepad++

I'm moving to Dreamweaver from Notepad++, and while Dw does have many better features than Notepad++, there are a few that I'm really missing.
Is there a way to make the "Home" key on the keyboard take you to the front of where the code starts, instead of the very front of the line? In Notepad++ this is how it works by default, and I don't know why anyone would want to go to the very front of the line instead of the front of the code. I use tabbing to keep it more organized, so this feature is really important to me.
How do I duplicate a line in Dw? In Notepad++ I can select the line and press ctrl + d and it automatically duplicated the code. This is awesome for something like a gallery or a table where I don't want to have to type out every line because it's so similar.
Less important, as I don't use this that often, but can you vertically select in Dw? In Notepad++ you can hold down alt and select lines vertically. Ex:
http://dl.dropbox.com/u/12147973/vert-select.jpg
Thanks in advance.
For #2, check out the Code Extras extension for Dreamweaver
No Longer works in DW5.5; Try here - http://yoropan.com/en/archives/544
I was also wanting some of this features... I discovered that, at least in CS6, #2 is already in Dreamweaver, but the shortcut is Ctrl+Alt+Down ou Up, depending on the direction that you wanna duplicate the code.
Note that I had to disable the shortcut that turns your screen view for that to work. (It's an intel default, press Ctrl+Alt+f12 to open the options)
And tãa dãaa... IT WORKS! :D
I want to say one thing different. My Dreamweaver theme (Users who use Dreamweaver after use Notepad++). Download Dreamweaver.xml
"Dreamweaver.xml" file is in here for windows: C:\Program Files\Notepad++\themes\Dreamweaver.xml
The answer to #1 = Ctrl+Home in anything in windows will take you to the absolute start of the documents, same as Ctrl+End, Home and End to start and finish of lines, Ctrl+Left or Right arrow to jump entire words...
I too am on the quest for duplicating lines in DW. #3 your image no longer shows.
If I want to duplicated a line I click on the line number, then CTRL+C to copy and CTRL+V to paste. Is that what you're looking for or am I being simple?