I would like to have more context in the code completion suggestions. Currently, it only shows around 10 lines of code, which is not enough for me. Can I adjust this limit?
Jan erik van Woerden
Asked on Dec 05, 2023
Yes, you can adjust the amount of context taken into account in Tabnine. However, increasing the context size will slow down the inference time exponentially. The default limit is 20 lines (10 line prefix + 10 line suffix). If you want to try a larger context size, you can modify the maxPrefixLines
and maxSuffixLines
values in the config.toml
file. For example, you can set maxPrefixLines
to 15 and maxSuffixLines
to 5 to have a total of 20 lines of context.