Skip to Main Content
Cloud Platform


This is an IBM Automation portal for Cloud Platform products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.


Status Not under consideration
Created by Guest
Created on Mar 25, 2013

Code gen should auto indent for scope

Currently if the code is at left margin in code edit view, thats how it appears in generated source.

Problem is that should be INDENT spaces in based on being in function braces.

Code in nested classes should be N x INDENT spaces in based on level N of nesting (when inlined)



bad (assuming no indent hand patched into Code View

void Outer::Func
{
/// USR
some_code;
/// USR
}

good

void Outer::Func
{
/// USR
some_code;
/// USR
}

bad

class Outer
{
class Inner
{
inline void Outer::Inner:::Func
{
/// USR
some_other_code;
/// USR
}


good

class Outer
{
class Inner
{
inline void Outer::Inner:::Func
{
/// USR
some_other_code;
/// USR
}

Code sync/gen should auto normalize (strip off common leading whitespace for non blank lines) so that a subsequent UML to C++ transform will appear at the correct indentation level (e.g no manual leading whitespace maintenance in code blocks should be needed)

Idea priority High
RFE ID 32826
RFE URL
RFE Product Rational Software Architect Real Time Edition
  • Admin
    Osman Burucu
    Reply
    |
    Jan 19, 2024

    As part of the review process, we strive to be transparent about our intentions with each enhancement suggestion.

    This idea is either outdated or has been implemented in one of the versions. Please check with latest version (V 12.0 at the time of writing)

    The offering team has carefully reviewed this idea and has decided that it does not fit into our current plans, so the idea will be closed. The idea will be kept in IBM's ideas repository and may still be voted on. It might be reassessed or reopened for additional feedback in the future. We value your feedback and thank you for allowing us the privilege of partnering with you in developing our products.

  • Guest
    Reply
    |
    Sep 24, 2015

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - WebSphere
    Product family - Application Platform
    Product - Software Architect Real Time Edition

    For recording keeping, the previous attributes were:
    Brand - Rational
    Product family - Design & development
    Product - Software Architect Real Time Edition

  • Guest
    Reply
    |
    May 15, 2013

    Are you proposing a preference for automatic indentation of a code snippet as soon as the generated source gets loaded? That could actually be a nice solution.

  • Guest
    Reply
    |
    May 14, 2013

    Is there any way to allow the default behavior to be to show the indented text? The suggested workflow adds several steps that would be required whenever creating/modifying the code of an operation.

    I am not concerened with hiding the indent. The concern is the generated files look ugly, making code review more difficult.

  • Guest
    Reply
    |
    Apr 29, 2013

    Uncommitted Candidate

  • Guest
    Reply
    |
    Apr 11, 2013

    This is a tricky requirement. When you edit a code snippet using the code view or code editor, and you have performed Load Generated Source, then you are actually editing the generated C++ file. This allows us to provide all the nice features from the CDT editor also in the code view and code editor.

    What we recommend users to do is to do Load Generated Source, and then perform the CDT command Correct Indentation (available in the Source context menu). This makes sure that the code snippet will be correctly indented in generated code. However, it also means that in most cases the code view/editor will show the code snippet indented, which may seem unnecessary, but really is a consequence of that you are editing the generated file, and not just some text string stored in the model.
    Changing the code view/editor so that it hides this indentation is not easy, and also not good in general since there are some lines that will not be indented, typically preprocessor macros.
    Please let us know if you think the workflow proposed above is reasonable for you.