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 #46107

Closed
ghost opened this issue Mar 19, 2018 · 2 comments
Closed

Minor problems with formatting #46107

ghost opened this issue Mar 19, 2018 · 2 comments
Labels
*caused-by-extension Issue identified to be caused by an extension editor-autoindent Editor auto indentation issues

Comments

@ghost
Copy link

ghost commented Mar 19, 2018

  • 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.

@vscodebot vscodebot bot added editor editor-autoindent Editor auto indentation issues labels Mar 19, 2018
@ghost
Copy link
Author

ghost commented Mar 19, 2018

My problem is similar to this one.

@tsalinger
Copy link
Contributor

Your issue is specific to the C++ extension. Please continue the discussion here:
microsoft/vscode-cpptools#1701

@tsalinger tsalinger added the *caused-by-extension Issue identified to be caused by an extension label Mar 19, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension editor-autoindent Editor auto indentation issues
Projects
None yet
Development

No branches or pull requests

1 participant