Comments (7)
I have never used astyle in windows but i'll try to give some directions
First you should try to put the astyle executable in your project folder, that might solve the problem for one project.
The other option is to put the astyle path in the PATH or the astyle executable somewhere visible in the PATH. I'm not very familiar with Windows best practices so I recommend you avoid this.
from formatter-astyle.
There are two ways:
- The first way : Copy the executable file to C:\Windows\System32 .
- The second way : Generally you should have your own folder to place your executable files so that you can execute them in cmd.
- So make such a folder and copy your astyle executable into it.
- Open Control Panel, go to System and Security -> System, select Advanced System Settings on the left, select Advanced tab, click Environment Variables, then a window shown below should appear:
- Double click on Path variable and add an item for your folder created before.
- click ok to exit and open cmd, enter astyle and it should work now.
As far as I know it is not convenient to install tools like this on Windows. I tried msys2 to make it more convenient but there seems to be some problems with interaction between msys2 and cmd.
from formatter-astyle.
Sorry for lack of clarity in previous reply.
formatter-astyle
use astyle.exe
to actually format the code, so formatter-astyle
(or actually, cmd
, which is executed by formatter-astyle
) needs to be able to find the executable file astyle.exe
to execute it.
In fact you need to download the astyle.exe
file and either specify the position of astyle.exe
in the setting page of formatter-astyle
, so that formatter-astyle
can know about astyle.exe
or you can place astyle.exe
in a position that is included in the Path
environment variable, which is specified in previous reply, so that cmd
will search the Path
variable, find astyle.exe
and finally execute it.
After following the instructions , it should work by pressing ctrl + alt + L in Atom.
from formatter-astyle.
Thanks a lot guys, Thanks a lot...
both the method copying files in the project folder and setting the path worked <3
from formatter-astyle.
@janosimas Thanks a lot for your responce
but let me clear my problem in brief
@LiZhenhuan1019 thank you also for your reply
so I followed this - https://atom.io/packages/formatter-astyle
as instruction i installed thye two package and in atom when i tried to format a code pressing ctrl + alt + L then the error message like below
came.
then i downloaded artistic style from - https://sourceforge.net/projects/astyle/
but its just a zip file, i extracted this but In dont know how to use it for atom
i just want to know the next step, that how can i format my code in atom editor pressing shortcut key like atom beautifier( but i dont like beautifier)
I hope I have now cleared my problem and sorry, I am a newbie
please guide me for this :-(
from formatter-astyle.
The instructions you followed are ok, but the package is not finding the astyle executable.
Try to extract the zip on your project folder e see if it solves the problem.
from formatter-astyle.
@LiZhenhuan1019 Do you want to make a ppull request with your comments to the instructions?
from formatter-astyle.
Related Issues (11)
- Remove file content in MacOS HOT 2
- cannot pass multiple arguments? HOT 3
- request: read astyle parameters from file HOT 3
- How to run formatter-astyle? HOT 3
- Random line brake
- Arguments to CompositeDisposable.add must have a .dispose() method HOT 1
- Failed to activate the formatter-astyle package HOT 4
- indent-namespace ignored in option file HOT 2
- Formatter ignores file line endings setting HOT 3
- AStyle not working. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formatter-astyle.