Skip to content

Code Action to create functions or properties #12462

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

Closed
jrieken opened this issue Nov 23, 2016 · 2 comments
Closed

Code Action to create functions or properties #12462

jrieken opened this issue Nov 23, 2016 · 2 comments
Labels
Domain: Quick Fixes Editor-provided fixes, often called code actions. Suggestion An idea for TypeScript

Comments

@jrieken
Copy link
Member

jrieken commented Nov 23, 2016

From @sharpmachine on November 22, 2016 16:51

  • VSCode Version: 1.7.1
  • OS Version: macOS Sierra 10.12.1
  • Angular 2/Typescript
    Steps to Reproduce:
  1. In a class, add a property or method that doesn't exist yet

Visual Studio 2015 and even Atom Typescript do this, but I can't figure out how to do it with VS Code.

Visual Studio 2015 screenshots:
screen shot 2016-11-22 at 8 45 41 am 2

screen shot 2016-11-22 at 8 46 05 am 2

Am I missing something or is this not possible in VS Code.

Copied from original issue: microsoft/vscode#15900

@mhegazy mhegazy added Suggestion An idea for TypeScript Domain: Quick Fixes Editor-provided fixes, often called code actions. labels Nov 23, 2016
@DanielRosenwasser
Copy link
Member

Fixed by #14097.

@normalser
Copy link

Seems like it's only partial fix - works for creating property - but does not work for methods.

Using Code Action on this.poop() will generate poop: any

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Domain: Quick Fixes Editor-provided fixes, often called code actions. Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

4 participants