-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
TypeScript - Indentation rules are not aware of Doc comments #29753
Comments
Another test case is pasting our copyright header when creating a new Pasting the following in a TypeScript file results in the leading spaces being stripped: /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/ ===> /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/ |
Auto indent should honor onEnter rules while guessing the good indent. Already have this fixed for moving lines, but not pasting. I cannot get rid of onEnter rules any more :( |
This two issues are fixed by ignoring Comments and honor onEnter rules when pasting. |
Nice! |
The special handling for comments was originally added in 886f472 to fix microsoft#29753, but it had the side effect of preventing a desired auto indent in the majority of cases when pasting lines beginning with a comment (basically, all cases except multiline docblock style comments at the leftmost indentation level). That case has since been solved in a different way by e77b196, so removing this special handling gives us the best of both worlds.
The special handling for comments was originally added in 886f472 to fix microsoft#29753, but it had the side effect of preventing a desired auto indent in the majority of cases when pasting lines beginning with a comment (basically, all cases except multiline docblock style comments at the leftmost indentation level). That case has since been solved in a different way by e77b196, so removing this special handling gives us the best of both worlds.
The special handling for comments was originally added in 886f472 to fix microsoft#29753, but it had the side effect of preventing a desired auto indent in the majority of cases when pasting lines beginning with a comment (basically, all cases except multiline docblock style comments at the leftmost indentation level). That case has since been solved in a different way by e77b196, so removing this special handling gives us the best of both worlds.
The special handling for comments was originally added in 886f472 to fix microsoft#29753, but it had the side effect of preventing a desired auto indent in the majority of cases when pasting lines beginning with a comment (basically, all cases except multiline docblock style comments at the leftmost indentation level). That case has since been solved in a different way by e77b196, so removing this special handling gives us the best of both worlds.
The special handling for comments was originally added in 886f472 to fix microsoft#29753, but it had the side effect of preventing a desired auto indent in the majority of cases when pasting lines beginning with a comment (basically, all cases except multiline docblock style comments at the leftmost indentation level). That case has since been solved in a different way by e77b196, so removing this special handling gives us the best of both worlds.
The special handling for comments was originally added in 886f472 to fix microsoft#29753, but it had the side effect of preventing a desired auto indent in the majority of cases when pasting lines beginning with a comment (basically, all cases except multiline docblock style comments at the leftmost indentation level). That case has since been solved in a different way by e77b196, so removing this special handling gives us the best of both worlds.
The special handling for comments was originally added in 886f472 to fix microsoft#29753, but it had the side effect of preventing a desired auto indent in the majority of cases when pasting lines beginning with a comment (basically, all cases except multiline docblock style comments at the leftmost indentation level). That case has since been solved in a different way by e77b196, so removing this special handling gives us the best of both worlds.
The special handling for comments was originally added in 886f472 to fix microsoft#29753, but it had the side effect of preventing a desired auto indent in the majority of cases when pasting lines beginning with a comment (basically, all cases except multiline docblock style comments at the leftmost indentation level). That case has since been solved in a different way by e77b196, so removing this special handling gives us the best of both worlds.
Have a TypeScript file configured with Tabs@4
Select
IMacLinuxKeyMapping
and paste it on top ofKeyMapping
The text was updated successfully, but these errors were encountered: