VS Code with Go, the quick fix always give «no code actions available».
No matter what’s the error or warning, no fix is given.

Is this my config/environment problem or is it a vscode bug/expected?
Any help will be highly appreciated!
asked Mar 29, 2019 at 8:26
6
I have the same problem when using the mouse to select a quick fix.
Instead of using the mouse use hot key, it works on win10:
- Place the cursor on the error.
- Press Ctrl + .
- Use the keyboard to select your fix.
answered Jul 22, 2019 at 8:18
![]()
Vic YuVic Yu
1671 silver badge4 bronze badges
3
I had the same problem but with C# project and the Omnisharp extension (C# v1.24.0).
VsCode didn’t resolve the namespaces, but instead showed the «No code actions available». After some time I stumbled across this GitHub issue https://github.com/OmniSharp/omnisharp-vscode/issues/5029.
After changing the Omnisharp settings via extension settings menu and setting the value
"omnisharp.path": "latest",
I restarted my Omnisharp extension and it finally started giving me proper quick fixes.
answered Feb 21, 2022 at 0:22
HellarenHellaren
3821 gold badge4 silver badges14 bronze badges
1
I have restarted the VS Code and the problem has gone.
answered Aug 4, 2020 at 12:30
DenisDenis
1576 bronze badges
0
in my case this was due to duplicate line number in my js file. removing the duplicate line numbers worked for me.
answered May 17, 2020 at 6:54
![]()
In my Python project I solved it by switching to the right python interpreter (I’m using a different virtual environment for every project.
I clicked on the python button (bottom of VS Code UI) and set the proper path within my /path/to/my/project/venv/bin/python:

Now when I’m using the shortcuts I’m able to Add import <some_import>, for example:

My VS Code version: 1.52.1
answered Jan 8, 2021 at 14:54
![]()
ItayBItayB
9,7909 gold badges51 silver badges76 bronze badges
Please run visual studio code as Administrator.
For more information check your Output Console. It happen because one of running programs block your omnisharp and it didn’t work!
answered Feb 22, 2022 at 21:54
![]()
2
I have this issue and by clicking on the extension panel I see the text shown in front of Omnisharp C# that says reload and this issue has been fixed by clicking on this text, maybe you have more than an extension for the language you code with , if it’s doesn’t work uninstall one of them and you see this work
answered Mar 1, 2022 at 15:45
RebwarRebwar
4133 silver badges17 bronze badges
Make sure you dont have a badly formatted or empty .sln file.
answered Aug 8, 2020 at 15:51
1
Существует ли расширение / плагин для автоматического импорта Python для кода Visual Studio?
Под автоматическим импортом я имею в виду автоматический импорт модулей Python. Eclipse и Intellij имеют эту функцию с Java.
3 ответа
Лучший ответ
Я создал расширение для автоматического импорта, поддерживающее Python. Это позволяет вам полностью настраивать, как импорт записывается в файл, изменяя пути импорта, имена, сортировку относительно других импортов. Плагин Python позволяет даже группировать импорт вместе с дополнительными переносами строк.
7
Carl
22 Май 2019 в 22:58
https://github.com/microsoft/python-language -server / вопросы / 19 # issuecomment — 587303061 :
Для тех, кто интересуется, как запустить автоматический импорт, как я сделал, вот шаги.
- Включите языковой сервер Microsoft Python, сняв флажок
Python: Jedi Enabledв ваших настройках.- Перезагрузите окно VSCode.
- Наведите указатель мыши на переменную, которую вы хотите импортировать, и нажмите
Quick исправление ...
Для последнего шага, если он показывает
No quick fixes availableилиChecking for quick fixes, возможно, вам придется подождать некоторое время, пока расширение завершило анализ кода. Также возможно установить ярлык, который вызывает быстрое решение.
0
Eyal Levin
3 Мар 2020 в 07:30
I am using Visual Studio Code to code for an app. I am using flutter to build the app. However, recently I have been unable to use the quick fix option to import files or fix simple errors. Previously I have not experienced this issue. I tried doing a clean re-install of VSC (and the plugins as well) but to no avail. Does anyone know how to fix this? Thank you so very much!
asked Jul 21, 2019 at 0:24
1
I have the same problem when using the mouse to select a quick fix. Instead of using the mouse use the keyboard:
- Place the cursor on the error.
- Press Ctrl + .
- Use the keyboard to select your fix.
![]()
Greenonline
2,1388 gold badges23 silver badges30 bronze badges
answered Jul 21, 2019 at 13:16
![]()
1