Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8590631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:20:20+00:00 2026-06-11T23:20:20+00:00

I really love the autofromat feature. I makes your code more readable and in

  • 0

I really love the autofromat feature. I makes your code more readable and in case of JavaScript tells you, when there are synatcs errors (missing brackets etc.).

However sometimes the formatting makes the code harder to read. e.g. when it puts a long array inizalisation into a single line. In that case I don’t want him to format it, but rather leave it ofer multiple lines.
E.g.

define([
    'jquery', 
    'aloha', 
    'aloha/plugin', 
    'ui/ui', 
    'ui/scopes', 
    'ui/button', 
    'ui/toggleButton', 
    'ui/port-helper-attribute-field', 
    'ui/text'
// 'css!youtube/css/youtube.css'
], 
    function(
        $, 
        Aloha, 
        Plugin, 
        Ui, 
        Scopes, 
        Button, 
        ToggleButton, 
        AttributeField) 
        {

this array should stay like this and don’t become this:

define(['jquery', 'aloha', 'aloha/plugin', 'ui/ui', 'ui/scopes', 'ui/button', 'ui/toggleButton', 'ui/port-helper-attribute-field', 'ui/text' ], function($, Aloha, Plugin, Ui, Scopes, Button, ToggleButton, AttributeField) {

Is there a special tag, to tell eclipse not to format the code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:20:22+00:00Added an answer on June 11, 2026 at 11:20 pm

    OK, it took me some time to find the right setting so I will post a toturial here.

    Go to Window Preferences and Search the Formatter you are using. In my case it was under ‘Aptana Studia’ -> ‘Formatter’. (Depending on your Package this differs, e.g. the Java Formatter is under ‘Java’ -> ‘Code Style’ -> ‘Formater’).

    Create new Formatter Proffile

    Noww create a new Build profile since you can’t override the old one.

    Now enable the Formatter tags.
    Enabale Formatter on/off tags

    Now you can use the

     - @formatter:on
     - @formatter:off
    

    tags to disable code formatting.

    Example:
    this code:

        function hello() {             return 'hello';
    }
    
    //@formatter:off
    /*
       |\      _,,,---,,_
       /,`.-'`'    -.  ;-;;,_
      |,4-  ) )-,_..;\ (  `'-'
     '---''(_/--'  `-'\_)  fL
    
     */
    //@formatter:on
    
    function 
    
    
    world() {
        return 'world';
    }
    

    Will get formatted to like this

    function hello() {
        return 'hello';
    }
    
    //@formatter:off
    /*
       |\      _,,,---,,_
       /,`.-'`'    -.  ;-;;,_
      |,4-  ) )-,_..;\ (  `'-'
     '---''(_/--'  `-'\_)  fL
    
     */
    //@formatter:on
    
    function world() {
        return 'world';
    }
    

    Note how the function definition is formatted correct, while the ascii art isn’t

    Credits:

    1. Katja Christiansen for his comment
    2. https://stackoverflow.com/a/3353765/639035 : for a similar answer
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really love the way Ajax makes a web app perform more like a
I really love SyntaxHighter - it turns out the poshest looking code around. Unfortunately
I'd really love your help with this deciding whether the language of all words
There is one thing I really love about LXML, and that the E builder.
Let L(R) be the language denoted by regular expression R. I'd really love your
I really love map in C++, it's fast and easy to program. Is there
I am fairly familiar with Autofac and one feature that I really love about
Admittedly I really love the Jerkson library because it makes generating JSON so easy.
I really love shrinking my code into as few lines as possible. I have
I don't really love when the code in the page is written in one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.