Code formatting is the way to format the source code of programs,using spaces and tabs, improving legibility of source code.
-1
votes
0answers
14 views
Is it possible to format the java script code embedded in a cshtml file
Is it possible to format the java script code embedded in a .cshtml file. I tried the Ctrl+K,Ctrl+D, and also the right-click option "Format Selection". However, both doesn't seems to work.
2
votes
1answer
42 views
Ruby code formatter
I've seen this question: Ruby Source code Auto-Formatter, but it seems to have not gotten any answers and it's a bit different from what I'm asking.
I've looked and looked for a Ruby source code ...
0
votes
0answers
32 views
Add indentation to blank lines in ActionScript code (FDT)
The same as this one: Add indentation to blank lines in Java code (Eclipse IDE) but for FDT.
Using FDT is it possible (via formatter or other setting) to automatically pre-indent blank lines in AS3 ...
1
vote
1answer
26 views
Intellij-IDEA: How to sort members alphabetically?
I am using Intellij-IDEA 12. Most of team mates use Eclipse and while saving it sorts members automatically first based on Visibility and then Alphabetically. I want to mimic the same functionality in ...
0
votes
0answers
12 views
eclipse default code formatting style?
Can someone tell me what's the default code format in eclipse? In Intellij IDEA, it is 4 4 8, I am not an eclipse user and want to enforce default code format for my project.
I want to know whether ...
0
votes
0answers
12 views
Formatter not working for json or js files Aptana Studio 3
When I open a file .json or .js in Aptana Studio 3 (Standalone) I do not get the indentation/formatting working...
Any suggestions?
When I format the code (ctrl + shift + F) I lose the ...
0
votes
0answers
11 views
How can I pretty-indent XML (and/or other code) in client-side Javascript? [duplicate]
So I have a fairly "dumb" server that basically just relays messages to a user's browser. These messages can come in a variety of formats, including XML and JSON. The problem is that this is basically ...
0
votes
1answer
31 views
Formatting options for Razor (cshtml) and C# (cs) files
Generally in my company we use MS C# Coding Conventions for C# code (.cs files). So, typically, our code looks more or less like this:
public class FooController
{
public ActionResult Index()
...
0
votes
1answer
22 views
Eclipse JUNO PHP Formatter
I've downloaded the Eclipse PDT package as well as however, I can't find any options for formatting my PHP such as specifying line breaks, etc.
In this answer to another question, ...
-1
votes
0answers
22 views
regex to beautify SASS?
I am looking for an example of a regular expression which when applied to a block of SASS will format it with nested indentation. A working example would be wonderful. Thank you.
0
votes
2answers
59 views
How to format django template in Sublime Text
How can one format django template in Sublime Text.
My template consists of:
HTML (django template language with {{ variable }} and {% stuff %})
javascript
Is there a way to get same kind of ...
0
votes
0answers
23 views
How to prevent reformat of asp.net generated html
When you have e.g. a <head> tag as runat="server" in asp.net and run the project and in the browser go view-source, the line breaks differ and the code is no longer formatted cleanly. This is ...
0
votes
1answer
45 views
Ways to format one-liner JavaScript file
What are some of the best and quickest ways to format a JavaScript file.
I ask because I've downloaded a file called slides.min.jquery.js and I
would like to know how to change it so instead of being ...
0
votes
0answers
32 views
C code formatter/indenter in JavaScript [closed]
I'm looking for a JavaScript library that provides a function:
format_c_code(code);
it should take a string with C code, and return a formatted version of it.
e.g.
format_c_code('int main(){int ...
0
votes
1answer
36 views
Emacs Lisp Built-In Indentation Issue with Keywords
Original
Say, I have a function like this:
(defun my-function ()
"This is my function."
:his-keyword xxx
:her-keyword yyy
(his-function)
(her-function))
After applying Emacs built-in ...