When I use emacs python-mode, if the last character of a line is an open parenthesis it indents the next line just one step in from the indentation of the previous line.  call_some_function(     some_very_long_argument_that_I_want_to_put_on_its_own_l...
Ok, I have a problem with eclipse/javascript. The identation inside of an object property is 8 spaces and it pisses me off. I want it to be 4 spaces. What do I need to change in order to fix that? I want eclipse to format it like "b".  var a...
js-beautify, when used from the command line (latest version, on both Windows and Linux) indents case labels, leading to double indentation of case blocks. I posted this as an issue on github:  https://github.com/einars/js-beautify/issues/367  in rep...
In dealing with a bunch of crufty Django template files, I want to indent them.  The files contain:   HTML, the bulk of the file.  Maybe a pre tag or two. JavaScript, inside script tags. CSS inside the style tags Django template directives inside {%...
I added the following common-hook to automatically indent when hitting return in js-mode;  (add-hook 'js-mode-common-hook '(lambda () (local-set-key (kbd "RET") 'newline-and-indent)))   Why isn't this working? I use the same e...
I'm trying to get VIM to indent Javascript with the '=' and related commands. When I try to auto indent the following, for example:     new function($) {      $.fn.setCursorPosition = function(pos) {         if ($(this).setSelectionRange)...
I have the following code:    var editor = ace.edit("editor"); editor.setTheme("ace/theme/dreamweaver"); editor.setShowPrintMargin(false); var session = editor.getSession(); session.setMode("ace/mode/html"); session.setUseWrap...
How can I automatically format JavaScript properly?  As an example, this:  (function(){(function(){alert('whatever')})()})()   Should become:  (function(){     (function(){         alert('whatever')     })() })()...
In Rails, I have a Coffeescript file in my views that gets rendered as the response to an AJAX request.  If I have some ERB control logic using <% %>, Id' like to be able to indent everything logically like I would in an HTML view:  example...
If a Javascript (or Typescript) function signature has multiple lines of arguments (can happen easily in Typescript, with longer type names), Visual Studio Code indents like this after I hit return:    I would prefer it line up the arguments, like th...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.