AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   Amxx with VSCode (https://forums.alliedmods.net/showthread.php?t=339294)

HowToRuski 08-31-2022 01:09

Amxx with VSCode
 
Is it possible to edit the code with VSCode and compile with amxxstudio, while its open? Because when i tried compiling, it made the old changes back in VSCode, do i really need to open it again and again, so it keepa the changes which i made in vscode?

fysiks 08-31-2022 01:14

Re: Amxx with VSCode
 
Don't use AMXXStudio, IIRC, it's an ancient application and may not work that smoothly like you might expect a modern editor like VS Code to work.

If you're wanting to compile directly in VS Code, you can easily do that. I use VS Code exclusively and compile using a single key press. Install and configure the AMXXPawn Language extension by Klippy.

HowToRuski 08-31-2022 03:00

Re: Amxx with VSCode
 
nvm

counterstrike1.6 08-31-2022 03:43

Re: Amxx with VSCode
 
Quote:

Originally Posted by fysiks (Post 2787795)
Don't use AMXXStudio, IIRC, it's an ancient application and may not work that smoothly like you might expect a modern editor like VS Code to work.

If you're wanting to compile directly in VS Code, you can easily do that. I use VS Code exclusively and compile using a single key press. Install and configure the AMXXPawn Language extension by Klippy.

Hi i have question [fysiks]
Did you use VS Code or VS Studio ? i am thinking to changing AMXX Studio to VS Code/Studio because every time when i compile it give loose indentation error after pressing (Ctrl+I) too.

HowToRuski 08-31-2022 05:02

Re: Amxx with VSCode
 
Quote:

Originally Posted by counterstrike1.6 (Post 2787807)
Hi i have question [fysiks]
Did you use VS Code or VS Studio ? i am thinking to changing AMXX Studio to VS Code/Studio because every time when i compile it give loose indentation error after pressing (Ctrl+I) too.

He already mentioned what he uses. And loose indentitation is not an error.

counterstrike1.6 08-31-2022 08:14

Re: Amxx with VSCode
 
Quote:

Originally Posted by HowToRuski (Post 2787811)
He already mentioned what he uses. And loose indentitation is not an error.

IK loose Indentation is not an error... but i hate given warning i am thinking turning of that error or shift to another IDE

fysiks 09-01-2022 02:24

Re: Amxx with VSCode
 
Loose indentation isn't caused by the IDE. It's caused by the coder. Loose indentation due to having spaces and tabs is often due to copying and pasting from multiple sources. Loose indentation when you're using all tabs or all spaces is due to the coder not indenting correctly.

For copy/pasting code, in VS Code, I can easily fix the spaces/tabs issue by selecting the entire code and then pressing TAB and then Shift+TAB. Any loose indentation due to poor coding should be fixed manually. This will help you learn how to 1) recognize it quicker and 2) get into the habit of doing it correctly the first time.


All times are GMT -4. The time now is 00:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.