Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor problems with formatting #1701

Closed
tsalinger opened this issue Mar 19, 2018 · 1 comment
Closed

Minor problems with formatting #1701

tsalinger opened this issue Mar 19, 2018 · 1 comment

Comments

@tsalinger
Copy link

This issue has been moved from Microsoft/vscode/
Original author is
@medoric
@medoric


  • VSCode Version: 1.20.1
  • OS Version: Windows 10 version 1709

VS Code is my primary way of writing C++ programs apart from VS, but the text editing still needs a little improvement.

  1. The Alt + Up/Down feature.
    I seem to remember that the shortcut could automatically adjust the number of tabs before the lines of code selected to fit wherever they are placed in previous versions (before the icon is changed to blue). But now, the number of tabs will not adjust. Could you please fix that because I use the shortcut frequently and sometimes the problem annoys me.

  2. Automatic indentation incorrect with ':'
    In class definitions and switch statements, the colon is used. But the indentation is kinda not right. If a line of code ends with ':' (for instance, "private:" or "case xxx:"), the number of indentations of the line of code should be decreased by 1. Take an example:

// What it should look like:
switch (foo)
{
case 1:
    // do something
    break;
case 2:
    // ...
    break;
// ....
}

// What it's like in VS Code without manual formatting:
switch (foo)
{
    case 1:
    // do something
    break;
    case 2:
    // ...
    break;
// ....
}

That's all. I hope the problems can be solved in future updates. The problems are not huge bugs but solving them make coding all the more convenient. Thanks.


This is a reply from
@medoric
@medoric

My problem is similar to this one.


@sean-mcmanus
Copy link
Collaborator

@medoric I think this is #883 .

@bobbrow bobbrow closed this as completed Mar 20, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants