WebStorm 2016.3.3 reformat code in Standard Style - coding-style

Is there any way to automatically reformat code according to StandardJS requirements?
I've changed code style in settings in WebStorm using this Doc. But I wanted the WebStorm not only to highlight errors, but also to reformat automatically (Ctrl + Alt + L in Ubuntu) like after using standard --fix.

This feature is available in 2017.1 EAP - see https://blog.jetbrains.com/webstorm/2017/01/webstorm-2017-1-eap-171-2272/

Related

How can I disable `Initializing JS/TS Language Features` in a specific project?

I have a Laravel project developing it inside the Visual Studio Code.
Also I have the front-end with Angular 8 in a separate project which also use VSC.
I build the Angular project and push the build version inside the Laravel project.
Now when I am working on my Laravel project VSC shows Initializing JS/TS Language Features message all the time inside the footer and it heavily impacts the performance of my computer.
As I am using this feature in other projects, is there a way to disable this feature just in a specific project? In this case in my Laravel project.
Disabling TypeScript and JavaScript Language Features built-in extension for a specific workplace helped to me (in my case the extension had been slowing down the performance of the machine and messing with autocomplete in React apps).
In your VSCode window:
Show All Commands (Ctrl/Cmd + Shift + P) -> Type "Extensions: Show Built-in Extensions" -> Features -> TypeScript and JavaScript Language Features -> Disable (Workplace)
And reload your VSCode after that.
TypeScript and JavaScript Language Features is a default built-in extension of VSCode. To disable it, do the following
Go to extensions view
macOS: COMMAND (⌘) + SHIFT (⇧) + x
Windows/Linux: CONTROL (⌃) + SHIFT (⇧) + x
Write #builtin in the search box and then search for the extension you'd want to disable, e.g. in your case TypeScript and JavaScript Language Features — now you can disable it.
I recommend only disabling it for your current Workspace i.e. current project
Here's a handy gif:
Disabling Language Features for TS and JS will work, but you'll also lose other features (pre-compile type checking, validating, etc.). The specific problem is due to the delay in executing Code Actions and isn't directly related to TS.
Yes, disabling Language Features will solve the problem, but you can target the root cause and keep the language features active!
In the user settings you want to disable "editor.codeActionsOnSave" for any particular features that are slowing you down. In my case, it was ESLint automatically fixing code actions on save; from my settings.json:
"editor.codeActionsOnSave": {
"source.fixAll.eslint": false
},
Disabling this let me keep language features enabled, but removed the conflict (Prettier was formatting my code on save, ESLint was fixing issues on save, and together there was a slowdown).
Open VS code command palette (Ctrl-Shift-P) and choose 'Angular: Restart Angular Language server'
Not a permanent solution, but it can help.

SASS | Indent based syntax in VS 2015

Does anyone know how I can use the SASS Indent based syntax in visual studio 2015 with highlighting.
I am not too fussed about compilation because I am using grunt for this anyway.
I am trying to get the company I work for to switch towards SASS indent syntax from LESS and so far everything looks as if I am winning in doing so.
The only issue is I think they will just scrap it off if I cant supply a way of using the syntax in VS2015 properly
anyone know any plugins etc?
thanks in advance,
Kieran
If I understand your question correctly: do the following
tools > options > text editor > sass > tabs
check "smart"
choose the tab size
check "insert spaces"
This will give you the automatic indenting that you can get from CTRL + D to format your document.
As far as Highlighting intellisense, this should have been featured in your VS2015, but if it's not, Go to Extensions and Updates and search for "SassyStudio". This has intellisense in it
Here is another link for .sass files syntax highlight. I was able to use this with no internet connection workstations (government). I think this will help

IntelliJ Code Completion

I really like the Code Completion in Visual Studio: I have a Variable called myrandomvariableand when I type myrandfollowed by a dot or a space, VS automatically inserts myrandomvariablefor me. I am so used to this, that in any other IDE I always expect the same behaviour and do not press ctrl+dot, enter or whatevers key combination. As I am using Android Studio I want to know if there exists a way to use the Visual Studio Style Code Completion in a IntelliJ IDE.
Thanks
You can easily enable this feature in IntelliJ.
Go to Settings/Editor/Autocompletion and check insert selected variant by typing dot, space, etc.
Btw: settings section was restructured a bit so this setting might be in a different location in IntelliJ 14 (I currently have 13 installed). But you should be able to find it easily using search dialog in case this is no longer the correct location for IntelliJ 14.

Hotkey for commenting ruby code in Aptana Studio 3 not Working with german keyboard

In Aptana Studio 3 (latest version and all previous versions of 3) I am not able to comment lines via keyboard shortcuts. I have a german keyboard layout.
The default shortcut is CTRL + /, but this doesn't work. Even setting the shortcut in Preferences/General/Keys doesn't work. The command is called Python Toggle Comment.
Using the Commands menu and use Source -> Comments -> Comment Line / Selection comments the lines correctly. In this menu I can also see the hotkey CTRL + / behind the menu entry.
It would increase the speed of writing and testing code, if I could use the hotkey. How can I achieve this?
You can try pulling down a copy of the Source ruble and edit the keybinding to one that works for you. Commands > Source > Edit this bundle. It'll try to do a git clone of the bundle into your "Documents/Aptana Rubles/source.ruble" folder. Then you can edit commands/toggle_comment.rb and change the binding to what works for you.

How to make Eclipse's content assist behavior similar to Visual Studio's IntelliSence

I'm a C# developer and recently started to use Eclipse IDE to write Android apps. The most noticeable change for me is that content assist doesn't popup automatically. Is there a way to do so? In VS it pops up almost always.
P.S. And a more general question: how to make eclipse to look more like VS?
Hey the best solution I've found, in terms of getting eclipse to pop up for everything I type, is going into windows > preferences > java > editor > content assist and adjusting the trigger characters. It's normally only set to ".". I changed mine to ".(abcdefgh..." etc. It's not quite as beautiful a solution as I'm sure you'd like, but it does an acceptable job making sure I don't have to remember what I've named things.
Go to Windows -> Preferences -> Java -> Editor -> Content Assist and check "Enable auto activation".
And what do you mean by "look like VS"? Fonts, colors, ...?

Resources