Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Add option for autocomplete to not add the types on function/method calls #1241

Closed
btracey opened this issue Sep 22, 2017 · 2 comments
Closed

Comments

@btracey
Copy link

btracey commented Sep 22, 2017

Currently, when autocompleting a function or method the entire method signature, including types, is used. For example, in strings.Split, it currently autocompletes as strings.Split(s string, sep string) rather than strings.Split(s, sep). In a lot of my code, I have variable names that are the same as argument names (i.e. my string is named s), and it would be convenient to only have to change the ones that are different.

@alexkohler
Copy link
Contributor

I'd like to take a stab at this.

alexkohler pushed a commit to alexkohler/vscode-go that referenced this issue Sep 29, 2017
ramya-rao-a pushed a commit that referenced this issue Oct 1, 2017
…1252)

* Adding option to not add types on function autocomplete. Fixes #1241

* Fixing whitespace
@ramya-rao-a
Copy link
Contributor

This feature is out in the latest update to the Go extension via the new setting go.useCodeSnippetsOnFunctionSuggestWithoutType

Thanks @alexkohler!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 24, 2018
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